Subject: | SSLeay.pod code example fix Net::SSLeay::initialize(); |
Hi,
remove Net::SSLeay::initialize() from code examples, because we run initialize functions step-by-step.
A following Net::SSLeay::initialize() would init all functions a second time because
$library_initialised is not set yet.
Upps, I forgot my signed-off-by line for the last two patches.
Signed-off-by: Andreas Mohr <and@gmx.li>
--- a/lib/NetSSLeay.pod 2014-05-03 00:00:00.000000000 +0000
+++ b/lib/NetSSLeay.pod 2014-05-03 00:00:00.000000000 +0000
@@ -497,8 +497,7 @@
Net::SSLeay::load_error_strings();
Net::SSLeay::SSLeay_add_ssl_algorithms();
- Net::SSLeay::randomize();Net::SSLeay::initialize();
- Net::SSLeay::initialize();
+ Net::SSLeay::randomize();
Or even safer:
@@ -508,7 +507,7 @@
BEGIN {
Net::SSLeay::load_error_strings();
Net::SSLeay::SSLeay_add_ssl_algorithms();
- Net::SSLeay::randomize();Net::SSLeay::initialize();
+ Net::SSLeay::randomize();
}
=head3 Combining Net::SSLeay with other modules linked with openssl