Add some accessor API's
[openssl.git] / ssl / ssl_lib.c
index a6957b3e65b99811d209b1beb67513cf4e2e8c7c..d4b83359061e2fb5c73237c24a7b69f3cde9b288 100644 (file)
@@ -671,6 +671,11 @@ SSL *SSL_new(SSL_CTX *ctx)
     return NULL;
 }
 
+int SSL_is_dtls(const SSL *s)
+{
+    return SSL_IS_DTLS(s) ? 1 : 0;
+}
+
 int SSL_up_ref(SSL *s)
 {
     int i;