diff options
author | jsing <> | 2014-05-29 16:00:16 +0000 |
---|---|---|
committer | jsing <> | 2014-05-29 16:00:16 +0000 |
commit | 523d54282c543c650be946602c618cf48ec008de (patch) | |
tree | e07ac6c4959ebe2e5276d36c944d7ec20c8f2f6d /src/lib/libssl/t1_meth.c | |
parent | 58eb928f74719c054467fb1c9ed254eab20bf136 (diff) | |
download | openbsd-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/t1_meth.c')
-rw-r--r-- | src/lib/libssl/t1_meth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/t1_meth.c b/src/lib/libssl/t1_meth.c index b39303b369..6bdffd2332 100644 --- a/src/lib/libssl/t1_meth.c +++ b/src/lib/libssl/t1_meth.c | |||
@@ -120,7 +120,7 @@ const SSL_METHOD TLSv1_1_method_data = { | |||
120 | .get_cipher = ssl3_get_cipher, | 120 | .get_cipher = ssl3_get_cipher, |
121 | .get_ssl_method = tls1_get_method, | 121 | .get_ssl_method = tls1_get_method, |
122 | .get_timeout = tls1_default_timeout, | 122 | .get_timeout = tls1_default_timeout, |
123 | .ssl3_enc = &TLSv1_enc_data, | 123 | .ssl3_enc = &TLSv1_1_enc_data, |
124 | .ssl_version = ssl_undefined_void_function, | 124 | .ssl_version = ssl_undefined_void_function, |
125 | .ssl_callback_ctrl = ssl3_callback_ctrl, | 125 | .ssl_callback_ctrl = ssl3_callback_ctrl, |
126 | .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, | 126 | .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, |
@@ -152,7 +152,7 @@ const SSL_METHOD TLSv1_2_method_data = { | |||
152 | .get_cipher = ssl3_get_cipher, | 152 | .get_cipher = ssl3_get_cipher, |
153 | .get_ssl_method = tls1_get_method, | 153 | .get_ssl_method = tls1_get_method, |
154 | .get_timeout = tls1_default_timeout, | 154 | .get_timeout = tls1_default_timeout, |
155 | .ssl3_enc = &TLSv1_enc_data, | 155 | .ssl3_enc = &TLSv1_2_enc_data, |
156 | .ssl_version = ssl_undefined_void_function, | 156 | .ssl_version = ssl_undefined_void_function, |
157 | .ssl_callback_ctrl = ssl3_callback_ctrl, | 157 | .ssl_callback_ctrl = ssl3_callback_ctrl, |
158 | .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, | 158 | .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, |