X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fd1_meth.c;h=ac86dec40d086eea774909c99f70517b88c591da;hp=5c4004bfe3c7ddf97e2c32127c833e6fe04fb3df;hb=a51f767645c117667d337f77fe1dd9c0a66d8410;hpb=4ebb342fcd90562bce999dcc0915b16f816fbbf2 diff --git a/ssl/d1_meth.c b/ssl/d1_meth.c index 5c4004bfe3..ac86dec40d 100644 --- a/ssl/d1_meth.c +++ b/ssl/d1_meth.c @@ -66,12 +66,30 @@ static const SSL_METHOD *dtls1_get_method(int ver) { if (ver == DTLS1_VERSION) return(DTLSv1_method()); + else if (ver == DTLS1_2_VERSION) + return(DTLSv1_2_method()); else return(NULL); } -IMPLEMENT_dtls1_meth_func(DTLSv1_method, +IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, + DTLSv1_method, dtls1_accept, dtls1_connect, - dtls1_get_method) + dtls1_get_method, + DTLSv1_enc_data) + +IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, + DTLSv1_2_method, + dtls1_accept, + dtls1_connect, + 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)