Alien-LibreSSL

 view release on metacpan or  search on metacpan

patch/Net-SSLeay.diff  view on Meta::CPAN

index 67acfe0..10dbb4a 100644
--- a/SSLeay.xs
+++ b/SSLeay.xs
@@ -849,13 +849,15 @@ int ssleay_session_secret_cb_invoke(SSL* s, void* secret, int *secret_len,
 
     res = POPi;
     if (res) {
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+	STRLEN newsecretlen;
+#endif
         /* See if there is a preferred cipher selected, if so it is an index into the stack */
         if (SvIOK(pref_cipher))
             *cipher = sk_SSL_CIPHER_value(peer_ciphers, SvIV(pref_cipher));
 
 #if OPENSSL_VERSION_NUMBER >= 0x10100000L
 	/* Use any new master secret set by the callback function in secret */
-	STRLEN newsecretlen;
 	char* newsecretdata = SvPV(secretsv, newsecretlen);
 	memcpy(secret, newsecretdata, newsecretlen);
 #endif
diff --git a/inc/Module/Install/PRIVATE/Net/SSLeay.pm b/inc/Module/Install/PRIVATE/Net/SSLeay.pm



( run in 1.359 second using v1.01-cache-2.11-cpan-49f99fa48dc )