Skip to content
Browse files

Use version in SSL_METHOD not SSL structure.

When deciding whether to use TLS 1.2 PRF and record hash algorithms
use the version number in the corresponding SSL_METHOD structure
instead of the SSL structure. The SSL structure version is sometimes
inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already.
  • Loading branch information
snhenson committed Dec 19, 2013
1 parent 2ec4181 commit ca989269a2876bae79393bd54c3e72d49975fc75
Showing with 1 addition and 1 deletion.
  1. +1 −1 ssl/s3_lib.c
@@ -4286,7 +4286,7 @@ need to go to SSL_ST_ACCEPT.
long ssl_get_algorithm2(SSL *s)
long alg2 = s->s3->tmp.new_cipher->algorithm2;
if (TLS1_get_version(s) >= TLS1_2_VERSION &&
if (s->method->version == TLS1_2_VERSION &&
return alg2;

0 comments on commit ca98926

Please sign in to comment.
You can’t perform that action at this time.