summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/d1_lib.c4
-rw-r--r--src/lib/libssl/ssl_locl.h7
2 files changed, 4 insertions, 7 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
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 9cad2bc50d..64725a7b23 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.165 2017/01/25 06:13:02 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.166 2017/01/25 06:38:01 jsing 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 *
@@ -328,7 +328,7 @@ __BEGIN_HIDDEN_DECLS
328 328
329/* Check if an SSL structure is using DTLS. */ 329/* Check if an SSL structure is using DTLS. */
330#define SSL_IS_DTLS(s) \ 330#define SSL_IS_DTLS(s) \
331 (s->method->internal->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) 331 (s->method->internal->version == DTLS1_VERSION)
332 332
333/* See if we need explicit IV. */ 333/* See if we need explicit IV. */
334#define SSL_USE_EXPLICIT_IV(s) \ 334#define SSL_USE_EXPLICIT_IV(s) \
@@ -1049,9 +1049,6 @@ typedef struct ssl3_enc_method {
1049/* Uses SHA256 default PRF. */ 1049/* Uses SHA256 default PRF. */
1050#define SSL_ENC_FLAG_SHA256_PRF (1 << 2) 1050#define SSL_ENC_FLAG_SHA256_PRF (1 << 2)
1051 1051
1052/* Is DTLS. */
1053#define SSL_ENC_FLAG_DTLS (1 << 3)
1054
1055/* Allow TLS 1.2 ciphersuites: applies to DTLS 1.2 as well as TLS 1.2. */ 1052/* Allow TLS 1.2 ciphersuites: applies to DTLS 1.2 as well as TLS 1.2. */
1056#define SSL_ENC_FLAG_TLS1_2_CIPHERS (1 << 4) 1053#define SSL_ENC_FLAG_TLS1_2_CIPHERS (1 << 4)
1057 1054