RE: How to determine if a ssl object is using a DTLS method?

2014-11-24 Thread Scott Neugroschl
Use getsockopt(SO_TYPE) on the underlying socket? -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of John Lane Schultz Sent: Monday, November 24, 2014 1:05 PM To: openssl-users@openssl.org Subject: How to determine if a ssl

Re: How to determine if a ssl object is using a DTLS method?

2014-11-24 Thread John Lane Schultz
Thanks! That will work. A system call is pretty heavy weight though, is there a cheaper OpenSSL way of determining the same? Cheers! - John Lane Schultz Spread Concepts LLC Cell: 443 838 2200 On Nov 24, 2014, at 4:23 PM, Scott Neugroschl scot...@xypro.com wrote: Use getsockopt(SO_TYPE)

Re: How to determine if a ssl object is using a DTLS method?

2014-11-24 Thread Dr. Stephen Henson
On Mon, Nov 24, 2014, John Lane Schultz wrote: Thanks! That will work. A system call is pretty heavy weight though, is there a cheaper OpenSSL way of determining the same? Well getting the version number is one way but you have to check more than one version if it can use the broken

Re: How to determine if a ssl object is using a DTLS method?

2014-11-24 Thread John Lane Schultz
Thank you, that worked just fine: int is_dtls(SSL *ssl) { return NULL != BIO_find_type(SSL_get_rbio(ssl), BIO_TYPE_DGRAM); } Cheers! - John Lane Schultz Spread Concepts LLC Cell: 443 838 2200 On Nov 24, 2014, at 8:04 PM, Dr. Stephen Henson st...@openssl.org wrote: On Mon, Nov 24,