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/t1_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/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index 5635c8ff43..10ca80c4fe 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_lib.c,v 1.177 2020/10/07 08:43:34 jsing Exp $ */ | 1 | /* $OpenBSD: t1_lib.c,v 1.178 2020/10/11 12:45:52 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 | * |
@@ -125,19 +125,6 @@ | |||
125 | static int tls_decrypt_ticket(SSL *s, CBS *ticket, int *alert, | 125 | static int tls_decrypt_ticket(SSL *s, CBS *ticket, int *alert, |
126 | SSL_SESSION **psess); | 126 | SSL_SESSION **psess); |
127 | 127 | ||
128 | SSL3_ENC_METHOD TLSv1_enc_data = { | ||
129 | .enc_flags = 0, | ||
130 | }; | ||
131 | |||
132 | SSL3_ENC_METHOD TLSv1_1_enc_data = { | ||
133 | .enc_flags = 0, | ||
134 | }; | ||
135 | |||
136 | SSL3_ENC_METHOD TLSv1_2_enc_data = { | ||
137 | .enc_flags = SSL_ENC_FLAG_SIGALGS|SSL_ENC_FLAG_SHA256_PRF| | ||
138 | SSL_ENC_FLAG_TLS1_2_CIPHERS, | ||
139 | }; | ||
140 | |||
141 | int | 128 | int |
142 | tls1_new(SSL *s) | 129 | tls1_new(SSL *s) |
143 | { | 130 | { |