]> granicus.if.org Git - openssl/commitdiff
new function SSL_is_server to which returns 1 is the corresponding SSL context is...
authorDr. Stephen Henson <steve@openssl.org>
Tue, 3 Jul 2012 14:25:17 +0000 (14:25 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 3 Jul 2012 14:25:17 +0000 (14:25 +0000)
ssl/ssl.h
ssl/ssl_lib.c

index aea244ab1dc3291fc57eb0644f40df5e570e1b81..a3da0ccf055fbb31b7a02657f8dc2fb3691833f2 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -2177,6 +2177,7 @@ void SSL_set_not_resumable_session_callback(SSL *ssl,
 
 void SSL_set_debug(SSL *s, int debug);
 int SSL_cache_hit(SSL *s);
+int SSL_is_server(SSL *s);
 
 #ifndef OPENSSL_NO_SSL_TRACE
 void SSL_trace(int write_p, int version, int content_type,
index 18e80d4ddc70f3011ffd2d38f2c011bd9ba1de11..1ba6e2d5d32ba0db33ee192dcd7f157c94d79bc4 100644 (file)
@@ -3341,6 +3341,11 @@ int SSL_cache_hit(SSL *s)
        return s->hit;
        }
 
+int SSL_is_server(SSL *s)
+       {
+       return s->server;
+       }
+
 #if defined(_WINDLL) && defined(OPENSSL_SYS_WIN16)
 #include "../crypto/bio/bss_file.c"
 #endif