Hi all, I wrote generic wrappers for handling both TLS + DTLS accept and connect logic in a non-blocking manner.
My problem is that with DTLS (but not TLS) ssl objects I need to set my own timers for implementing reliability of msgs by calling, for example, DTLSv1_get_timeout and DTLSv1_handle_timeout. (TCP handles this for TLS automatically) Therefore, I need to check if the ssl on which I’m operating is a DTLS or a TLS ssl object. Is there an easy and good way to do this? I can do a brute force method of calling SSL_get_ssl_method and then checking it against all the methods I know (e.g. - DTLSv1_method(), DTLSv1_client_method(), DTLSv1_server_method, etc.) but that seems ugly and fragile, especially as more methods are added in the future. Can anyone suggest a better way to figure out if I need to do special DTLS handling on a ssl object or not? Cheers! ----- John Lane Schultz Spread Concepts LLC Cell: 443 838 2200 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org