summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-29 16:00:16 +0000
committerjsing <jsing@openbsd.org>2014-05-29 16:00:16 +0000
commit3f6fa97bf9a868cc2cd5fb1f16730f5b5558c3b0 (patch)
tree90f618b3b8cebea92c1ee8c0a956d56713bb3e97 /lib/libssl/d1_lib.c
parentWhen you have functions that perform specific functions, use them. (diff)
downloadwireguard-openbsd-3f6fa97bf9a868cc2cd5fb1f16730f5b5558c3b0.tar.xz
wireguard-openbsd-3f6fa97bf9a868cc2cd5fb1f16730f5b5558c3b0.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 'lib/libssl/d1_lib.c')
-rw-r--r--lib/libssl/d1_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c
index 87bc9b68c6b..4ee3e361681 100644
--- a/lib/libssl/d1_lib.c
+++ b/lib/libssl/d1_lib.c
@@ -86,6 +86,7 @@ SSL3_ENC_METHOD DTLSv1_enc_data = {
.server_finished_label_len = TLS_MD_SERVER_FINISH_CONST_SIZE,
.alert_value = tls1_alert_code,
.export_keying_material = tls1_export_keying_material,
+ .enc_flags = SSL_ENC_FLAG_DTLS|SSL_ENC_FLAG_EXPLICIT_IV,
};
long