diff options
author | guenther <> | 2020-10-11 12:45:52 +0000 |
---|---|---|
committer | guenther <> | 2020-10-11 12:45:52 +0000 |
commit | af6a663711d3d3993dad528fa53865494ffaca28 (patch) | |
tree | 667c30e60e822bb9cb6f7a9d26580beea65d65a0 /src/lib/libssl/s3_lib.c | |
parent | d30a2211e331d165f1922febac556a295ba95562 (diff) | |
download | openbsd-af6a663711d3d3993dad528fa53865494ffaca28.tar.gz openbsd-af6a663711d3d3993dad528fa53865494ffaca28.tar.bz2 openbsd-af6a663711d3d3993dad528fa53865494ffaca28.zip |
SSL3_ENC_METHOD is just a flag word; merge it into SSL_METHOD_INTERNAL
with #defines for the per-version initializers instead of extern
globals. Add SSL_USE_SHA256_PRF() to complete the abstraction.
ok tb@ jsing@
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r-- | src/lib/libssl/s3_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index 01afc72ebd..3bd7d65522 100644 --- a/src/lib/libssl/s3_lib.c +++ b/src/lib/libssl/s3_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_lib.c,v 1.199 2020/10/11 01:13:04 guenther Exp $ */ | 1 | /* $OpenBSD: s3_lib.c,v 1.200 2020/10/11 12:45:51 guenther Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -2731,7 +2731,7 @@ ssl_get_algorithm2(SSL *s) | |||
2731 | { | 2731 | { |
2732 | long alg2 = S3I(s)->hs.new_cipher->algorithm2; | 2732 | long alg2 = S3I(s)->hs.new_cipher->algorithm2; |
2733 | 2733 | ||
2734 | if (s->method->internal->ssl3_enc->enc_flags & SSL_ENC_FLAG_SHA256_PRF && | 2734 | if (SSL_USE_SHA256_PRF(s) && |
2735 | alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF)) | 2735 | alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF)) |
2736 | return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256; | 2736 | return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256; |
2737 | return alg2; | 2737 | return alg2; |