summaryrefslogtreecommitdiffstats
path: root/ssl/d1_meth.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-04-06 15:50:12 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-09-18 13:46:02 +0100
commit65a87d3cc3c21bb54e6e813ee21ad049fea1310a (patch)
tree945c6b15877c4263588e251455ad534c04bd7a00 /ssl/d1_meth.c
parentb60b9e7afe649a564db13dbf10ca571e973844c1 (diff)
Dual DTLS version methods.
Add new methods DTLS_*_method() which support both DTLS 1.0 and DTLS 1.2 and pick the highest version the peer supports during negotiation. As with SSL/TLS options can change this behaviour specifically SSL_OP_NO_DTLSv1 and SSL_OP_NO_DTLSv1_2. (cherry picked from commit c6913eeb762edffddecaaba5c84909d7a7962927) Conflicts: CHANGES
Diffstat (limited to 'ssl/d1_meth.c')
-rw-r--r--ssl/d1_meth.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/d1_meth.c b/ssl/d1_meth.c
index 64a22d6b09..ac86dec40d 100644
--- a/ssl/d1_meth.c
+++ b/ssl/d1_meth.c
@@ -86,3 +86,10 @@ IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION,
dtls1_get_method,
DTLSv1_2_enc_data)
+IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION,
+ DTLS_method,
+ dtls1_accept,
+ dtls1_connect,
+ dtls1_get_method,
+ DTLSv1_2_enc_data)
+