commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] vanzin commented on a change in pull request #92: OpenSSL 1.1.0 updates with backward compatibility for OpenSSL 1.0.2 and 1.0.1
Date Mon, 11 Feb 2019 18:59:06 GMT
vanzin commented on a change in pull request #92: OpenSSL 1.1.0 updates with backward compatibility
for OpenSSL 1.0.2 and 1.0.1
URL: https://github.com/apache/commons-crypto/pull/92#discussion_r255647218
 
 

 ##########
 File path: src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
 ##########
 @@ -294,49 +278,57 @@ static unsigned long pthreads_thread_id(void)
  * If using an Intel chipset with RDRAND, the high-performance hardware
  * random number generator will be used.
  */
-static ENGINE * openssl_rand_init(void)
+static ENGINE * openssl_rand_init(JNIEnv *env)
 {
-  locks_setup();
+  if (OPENSSL_VERSION_NUMBER < VERSION_1_1_X) {
 
 Review comment:
   Looks like another compile-time check, if `OPENSSL_VERSION_NUMBER` really comes from the
openssl headers.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message