X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fd1_meth.c;h=ac86dec40d086eea774909c99f70517b88c591da;hp=8a6cf31947aba86e65e2f58e0db93cb91804a188;hb=c655f40ed2eb291adf3e23264b7535b7487efe50;hpb=f3b656b246f45a0159aea9c38634a9f72f98d31d diff --git a/ssl/d1_meth.c b/ssl/d1_meth.c index 8a6cf31947..ac86dec40d 100644 --- a/ssl/d1_meth.c +++ b/ssl/d1_meth.c @@ -61,17 +61,35 @@ #include #include "ssl_locl.h" -static SSL_METHOD *dtls1_get_method(int ver); -static SSL_METHOD *dtls1_get_method(int ver) +static const SSL_METHOD *dtls1_get_method(int ver); +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)