new function SSL_is_server to which returns 1 is the corresponding SSL context is for a server

This commit is contained in:
Dr. Stephen Henson
2012-07-03 14:25:17 +00:00
parent 15a70fe510
commit 87adf1fa96
2 changed files with 6 additions and 0 deletions

View 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