Skip to content

Commit

Permalink
release as 2.089
Browse files Browse the repository at this point in the history
update fingerprints and public suffix
  • Loading branch information
noxxi committed Aug 29, 2024
1 parent 996f603 commit fa1f83d
Show file tree
Hide file tree
Showing 5 changed files with 561 additions and 569 deletions.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.089 2024/08/29
- new option SSL_force_fingerprint to enforce fingerprint matching even if
certificate validation would be successful without
- document _get_ssl_object and _get_ctx_object for cases, where direct use of
Net::SSLeay functions is needed
2.088 2024/07/14
- minor fixes for use on ancient versions of perl and for building with
newer versions of openssl
Expand Down
8 changes: 4 additions & 4 deletions lib/IO/Socket/SSL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package IO::Socket::SSL;

our $VERSION = '2.088';
our $VERSION = '2.089';

use IO::Socket;
use Net::SSLeay 1.46;
Expand Down Expand Up @@ -1570,14 +1570,14 @@ sub fileno {


####### IO::Socket::SSL specific functions #######
# _get_ssl_object is for internal use ONLY!
# get access to SSL handle for use with Net::SSLeay. Use with caution!
sub _get_ssl_object {
my $self = shift;
return ${*$self}{'_SSL_object'} ||
IO::Socket::SSL->_internal_error("Undefined SSL object",9);
}

# _get_ctx_object is for internal use ONLY!
# get access to SSL handle for use with Net::SSLeay. Use with caution!
sub _get_ctx_object {
my $self = shift;
my $ctx_object = ${*$self}{_SSL_ctx};
Expand Down Expand Up @@ -2319,7 +2319,7 @@ my $DEFAULT_SSL_OP = &Net::SSLeay::OP_ALL
| ($can_ecdh ? &Net::SSLeay::OP_SINGLE_ECDH_USE : 0);


# _get_ctx_object is for internal use ONLY!
# get access to SSL handle for use with Net::SSLeay. Use with caution!
sub _get_ctx_object { shift->{context} }

# Note that the final object will actually be a reference to the scalar
Expand Down
14 changes: 14 additions & 0 deletions lib/IO/Socket/SSL.pod
Original file line number Diff line number Diff line change
Expand Up @@ -2190,6 +2190,20 @@ the print/printf/syswrite and read/sysread families instead.

=back

=head1 ACCESS TO INTERNALS

C<IO::Socket::SSL> uses internally C<Net::SSLeay> which provides a lower level
API to OpenSSL and provides functions which work directly with OpenSSL SSL and
CTX handles. Sometimes it might be necessary to get direct access to these
handles from C<IO::Socket::SSL> in order to apply functionality available only
with C<Net::SSLeay>.

For this C<_get_ssl_object> can be used on the C<IO::Socket::SSL> object to get
access to the OpenSSL SSL handle and C<_get_ctx_object> can be used on
C<IO::Socket::SSL> and C<IO::Socket::SSL_Context> objects to access the OpenSSL
CTX handle. Use very carefully since OpenSSL memory/reference management must be
done manually with C<Net::SSLeay>.

=head1 DEPRECATIONS

The following functions are deprecated and are only retained for compatibility:
Expand Down
Loading

0 comments on commit fa1f83d

Please sign in to comment.