1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/ossl.h: Make SSL_SESSION_cmp use CRYPTO_memcmp

[fix GH-591] Patch by @PiPeep
* ext/openssl/ossl_ssl_session.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-01-03 01:14:56 +00:00
parent f661c0be44
commit 2758be26bb
3 changed files with 8 additions and 1 deletions

View file

@ -79,7 +79,7 @@ int SSL_SESSION_cmp(const SSL_SESSION *a,const SSL_SESSION *b)
if (a->ssl_version != b->ssl_version ||
a->session_id_length != b->session_id_length)
return 1;
return memcmp(a->session_id,b-> session_id, a->session_id_length);
return CRYPTO_memcmp(a->session_id, b->session_id, a->session_id_length);
}
#endif