diff options
author | Rich Salz <rsalz@openssl.org> | 2016-06-08 11:37:06 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-06-08 11:37:06 -0400 |
commit | e417070c9f2162594e8289aed93bd5801e70e60d (patch) | |
tree | a156f6cfc17a9455b7e9afd6375ec0c05e79c27d /ssl | |
parent | 01d0e241dc4184a5a1f222f8eccdad11da12305a (diff) |
Add some accessor API's
GH1098: Add X509_get_pathlen() (and a test)
GH1097: Add SSL_is_dtls() function.
Documented.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index a6957b3e65..d4b8335906 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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; |