summaryrefslogtreecommitdiffstats
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-05-25 11:43:17 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-05-25 11:43:17 +0000
commit277f8a34f4041fb9e7b00e998e079d7fecd075a9 (patch)
tree616e616fb31ecca3eb5ebbcfeec81a50b2f4410d /ssl/s3_lib.c
parent4dde470865ae2421e4ebd55e936ddb25238608a2 (diff)
use TLS1_get_version macro to check version so TLS v1.2 changes don't interfere with DTLS
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r--ssl/s3_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 0f4e3029a8..9ace089566 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -3761,7 +3761,7 @@ need to go to SSL_ST_ACCEPT.
long ssl_get_algorithm2(SSL *s)
{
long alg2 = s->s3->tmp.new_cipher->algorithm2;
- if (s->version >= TLS1_2_VERSION &&
+ if (TLS1_get_version(s) >= TLS1_2_VERSION &&
alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF))
return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256;
return alg2;