summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_lib.c
diff options
context:
space:
mode:
authorguenther <>2020-10-11 12:45:52 +0000
committerguenther <>2020-10-11 12:45:52 +0000
commitaf6a663711d3d3993dad528fa53865494ffaca28 (patch)
tree667c30e60e822bb9cb6f7a9d26580beea65d65a0 /src/lib/libssl/t1_lib.c
parentd30a2211e331d165f1922febac556a295ba95562 (diff)
downloadopenbsd-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.c15
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 @@
125static int tls_decrypt_ticket(SSL *s, CBS *ticket, int *alert, 125static int tls_decrypt_ticket(SSL *s, CBS *ticket, int *alert,
126 SSL_SESSION **psess); 126 SSL_SESSION **psess);
127 127
128SSL3_ENC_METHOD TLSv1_enc_data = {
129 .enc_flags = 0,
130};
131
132SSL3_ENC_METHOD TLSv1_1_enc_data = {
133 .enc_flags = 0,
134};
135
136SSL3_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
141int 128int
142tls1_new(SSL *s) 129tls1_new(SSL *s)
143{ 130{