head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.26 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.24 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.22 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.20 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.18 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.16 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.14 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.12 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.10 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.8 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.6 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.4 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.2 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.3.0.4 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.2 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.2.0.2 pkgsrc-2006Q3-base:1.2; locks; strict; comment @# @; 1.4 date 2007.06.08.07.57.11; author wiz; state dead; branches; next 1.3; 1.3 date 2006.10.28.15.14.59; author schwarz; state Exp; branches; next 1.2; 1.2 date 2006.08.22.23.10.57; author abs; state Exp; branches; next 1.1; 1.1 date 2006.08.22.22.04.51; author abs; state Exp; branches; next ; desc @@ 1.4 log @Update to 0.55: 0.55 2007-06-01 17:34:22 UTC - Added a blocking() method to Net::SSL (and bumped version to 2.81). 0.54 2007-04-12 22:05:26 UTC - Rebadged 0.53_05, since no bugs appear to have surfaced. 0.53_05 - Fixed up incorrect LIBS key in WriteMakefile args. Thanks to David Cantrell for giving me access to an OpenBSD box that revealed this problem. - Added the list of modules that depend on Crypt::SSLeay to the README, as per cpants.perl.org. (think: improvements to the test suite). 0.53_04 2007-03-06 09:39:01 UTC - add diag() info to determine possible reasons for failure as per http://www.nntp.perl.org/group/perl.cpan.testers/2007/03/msg428964.html - Tweaks for Strawberry Perl detection. 0.53_03 2007-03-04 18:30:06 UTC - Adjusted the typemap shims to silence the compiler warnings that occur when sizeof(IV) is larger than sizeof(char *). - use XSLoader for faster loading if available, otherwise fall back to DynaLoader. - Makefile.PL heavily reworked, lots of cruft removed. - Ask to see whether the live tests should be run. - renamed net_sst.t to 01-connect.t - added 02-live.t that performs live HTTPS requests. 0.53_02 2007-01-29 10:02:34 UTC - don't proxy hosts in NO_PROXY environment variable (CPAN bug #11078). - don't send user agent string to proxy unless send_useragent_to_proxy is enabled. (CPAN bug #4759). - Net::SSL bumped to 2.80 0.53_01 2007-01-24 22:21:09 UTC - patch for CPAN #12444 applied (Jeff Lavallee). Net::SSL bumped tp 2.79. - example scripts moved into eg/ directory and the documentation updated. - added a TODO to remind me of what needs to be done. 0.53 2006-12-26 17:21:22 UTC - 0.52_02 deemed stable 0.52_02 2006-12-20 19:29:01 UTC - improved VMS support (CPAN bug #19829). - add a test to see if cert file is readable in Net::SSL::configure_certs (CPAN bug #8498) and Net::SSL version to 2.78. - known working platforms list removed from documentation. Too old, and CPAN Testers has the up-to-date information. - minor documentation improvements. 0.52_01 2006-12-17 - add call to SSL_library_init() in new() - maintenance taken over by brian d foy and David Landgren. @ text @$NetBSD: patch-ab,v 1.3 2006/10/28 15:14:59 schwarz Exp $ --- SSLeay.xs.orig 2003-05-28 08:55:02.000000000 +0200 +++ SSLeay.xs 2006-10-28 14:25:40.000000000 +0200 @@@@ -40,7 +40,7 @@@@ */ -static void InfoCallback(SSL *s,int where,int ret) +static void InfoCallback(const SSL *s,int where,int ret) { char *str; int w; @@@@ -107,7 +107,7 @@@@ int rand_bytes_read; if(!bNotFirstTime) { - SSLeay_add_all_algorithms(); + SSL_library_init(); SSL_load_error_strings(); ERR_load_crypto_strings(); bNotFirstTime = 1; @@@@ -130,6 +130,8 @@@@ /* v2 is the default */ ctx = SSL_CTX_new(SSLv2_client_method()); } + if (ctx == 0) + croak("SSL_CTX_new failed"); SSL_CTX_set_options(ctx,SSL_OP_ALL|0); SSL_CTX_set_default_verify_paths(ctx); @ 1.3 log @ fixed code to satisfy picky SGI ido cc @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @reduce previous patch - no functional change. Noted by phone@@ @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 2006/08/22 22:04:51 abs Exp $ d3 12 a14 3 --- SSLeay.xs.orig 2003-05-28 07:55:02.000000000 +0100 +++ SSLeay.xs @@@@ -107,7 +107,7 @@@@ SSL_CTX_new(packname, ssl_version) d23 1 a23 1 @@@@ -130,6 +130,8 @@@@ SSL_CTX_new(packname, ssl_version) @ 1.1 log @Update p5-Crypt-SSLeay to 0.51nb7 For OpenSSL 0.9.8b SSLeay_add_all_algorithms() does not setup any algorithms, wheras SSL_library_init() does. The net result was that SSL_CTX_new() would return a NULL pointer causing a perl coredump in such cases as: my $request = HTTP::Request->new( "GET", 'https://' ); my $ua = LWP::UserAgent->new; my $response = $ua->request($request); Tracking this down was an entire flaming evening and change of my life that I'm never going to get back, but at least my NetBSD-4 retail machines can now run NetBSD-4 built perl binaries again. @ text @d1 1 a1 1 $NetBSD$ d14 1 a14 1 @@@@ -130,10 +130,15 @@@@ SSL_CTX_new(packname, ssl_version) a17 1 - SSL_CTX_set_options(ctx,SSL_OP_ALL|0); d20 1 a20 11 + else + { + SSL_CTX_set_options(ctx,SSL_OP_ALL|0); - SSL_CTX_set_default_verify_paths(ctx); - SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); + SSL_CTX_set_default_verify_paths(ctx); + SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); + } RETVAL = ctx; d22 1 @