summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <>2014-05-29 16:00:16 +0000
committerjsing <>2014-05-29 16:00:16 +0000
commit523d54282c543c650be946602c618cf48ec008de (patch)
treee07ac6c4959ebe2e5276d36c944d7ec20c8f2f6d /src/lib/libssl/s3_lib.c
parent58eb928f74719c054467fb1c9ed254eab20bf136 (diff)
downloadopenbsd-523d54282c543c650be946602c618cf48ec008de.tar.gz
openbsd-523d54282c543c650be946602c618cf48ec008de.tar.bz2
openbsd-523d54282c543c650be946602c618cf48ec008de.zip
Make it substantially easier to identify protocol version requirements
by adding an enc_flags field to the ssl3_enc_method, specifying four flags that are used with this field and providing macros for evaluating these conditions. Currently the version requirements are identified by continually checking the version number and other criteria. This change also adds separate SSL3_ENC_METHOD data for TLS v1.1 and v1.2, since they have different enc_flags from TLS v1. Based on changes in OpenSSL head. No objection from miod@
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index 2f4ab38863..e3770bd0ae 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -2270,6 +2270,7 @@ SSL3_ENC_METHOD SSLv3_enc_data = {
2270 .export_keying_material = (int (*)(SSL *, unsigned char *, size_t, 2270 .export_keying_material = (int (*)(SSL *, unsigned char *, size_t,
2271 const char *, size_t, const unsigned char *, size_t, 2271 const char *, size_t, const unsigned char *, size_t,
2272 int use_context))ssl_undefined_function, 2272 int use_context))ssl_undefined_function,
2273 .enc_flags = 0,
2273}; 2274};
2274 2275
2275long 2276long
@@ -3062,7 +3063,6 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
3062 emask_k = cert->export_mask_k; 3063 emask_k = cert->export_mask_k;
3063 emask_a = cert->export_mask_a; 3064 emask_a = cert->export_mask_a;
3064 3065
3065
3066 alg_k = c->algorithm_mkey; 3066 alg_k = c->algorithm_mkey;
3067 alg_a = c->algorithm_auth; 3067 alg_a = c->algorithm_auth;
3068 3068