summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authorjsing <>2017-01-25 06:38:01 +0000
committerjsing <>2017-01-25 06:38:01 +0000
commit74e3af800a6d38d80a0fee55c3d3c01c3e589ec1 (patch)
tree5e5521046341b9f51c8642a76659d7f61e6383e2 /src/lib/libssl/d1_lib.c
parentfe6f3fc2532579fc0941a1603d5e19a11a013179 (diff)
downloadopenbsd-74e3af800a6d38d80a0fee55c3d3c01c3e589ec1.tar.gz
openbsd-74e3af800a6d38d80a0fee55c3d3c01c3e589ec1.tar.bz2
openbsd-74e3af800a6d38d80a0fee55c3d3c01c3e589ec1.zip
Change the SSL_IS_DTLS() macro to check the version, rather than using a
flag in the encryption methods. We can do this since there is currently only one DTLS version. This makes upcoming changes easier. ok beck@
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
-rw-r--r--src/lib/libssl/d1_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index e8c3b10761..e4805a1efa 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_lib.c,v 1.37 2017/01/23 13:36:13 jsing Exp $ */ 1/* $OpenBSD: d1_lib.c,v 1.38 2017/01/25 06:38:01 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -87,7 +87,7 @@ SSL3_ENC_METHOD DTLSv1_enc_data = {
87 .server_finished_label_len = TLS_MD_SERVER_FINISH_CONST_SIZE, 87 .server_finished_label_len = TLS_MD_SERVER_FINISH_CONST_SIZE,
88 .alert_value = tls1_alert_code, 88 .alert_value = tls1_alert_code,
89 .export_keying_material = tls1_export_keying_material, 89 .export_keying_material = tls1_export_keying_material,
90 .enc_flags = SSL_ENC_FLAG_DTLS|SSL_ENC_FLAG_EXPLICIT_IV, 90 .enc_flags = SSL_ENC_FLAG_EXPLICIT_IV,
91}; 91};
92 92
93long 93long