summaryrefslogtreecommitdiff
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-01-07 19:02:08 +0000
committerXin LI <delphij@FreeBSD.org>2014-01-07 19:02:08 +0000
commitcbbee3a581d0bbf1b738c0805da55a438c265a20 (patch)
tree2e2eb91a8a37902a3e02fcc8726521f89373fdd8 /ssl/s3_lib.c
parented4c5254dd244e65403ee0ca57f1a5727ff1761d (diff)
downloadsrc-test2-cbbee3a581d0bbf1b738c0805da55a438c265a20.tar.gz
src-test2-cbbee3a581d0bbf1b738c0805da55a438c265a20.zip
Notes
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 e7c5dcb809f9..3291e3d8e297 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -4274,7 +4274,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 &&
alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF))
return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256;
return alg2;