DTLSv1_method, DTLSv1_client_method and DTLSv1_server_method are used by default in various places in the stack. This prevents applications from dynamically choosing the DTLS version that is optimal for security and compatibility with a particularly peer at runtime.
These calls should be replaced with the DTLS_method, DTLS_client_method and DTLS_server_method
Testing on Debian jessie, I observed that DTLS_method, DTLS_client_method and DTLS_server_method were not present in my OpenSSL headers so it may be necessary to either use a newer OpenSSL version and to have some additional macros and build options for building with legacy OpenSSL versions.
The places where this needs to be changed are: