diff options
| author | guenther <> | 2020-10-11 12:45:52 +0000 |
|---|---|---|
| committer | guenther <> | 2020-10-11 12:45:52 +0000 |
| commit | 7b7c6524ff821667b1de97d6f034680b9c0cb33b (patch) | |
| tree | 667c30e60e822bb9cb6f7a9d26580beea65d65a0 /src/lib/libssl/t1_lib.c | |
| parent | 1ec933f0d46d3d30663df26ccc9607921d8fc6f9 (diff) | |
| download | openbsd-7b7c6524ff821667b1de97d6f034680b9c0cb33b.tar.gz openbsd-7b7c6524ff821667b1de97d6f034680b9c0cb33b.tar.bz2 openbsd-7b7c6524ff821667b1de97d6f034680b9c0cb33b.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 '')
| -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 | { |
