diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-21 16:32:40 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-21 17:33:59 +0100 |
commit | f9e550341281b0d344f7a5e7ac2ace79f88a3184 (patch) | |
tree | 92d80d122c6d3c1eee39ffdd08cfe1980a657095 /apps/s_cb.c | |
parent | Fix no-gost (diff) | |
download | openssl-f9e550341281b0d344f7a5e7ac2ace79f88a3184.tar.xz openssl-f9e550341281b0d344f7a5e7ac2ace79f88a3184.zip |
Fix no-sock
Misc fixes for no-sock
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r-- | apps/s_cb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c index 66b2a50dde..b75ff31025 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -131,8 +131,10 @@ int verify_depth = 0; int verify_quiet = 0; int verify_error = X509_V_OK; int verify_return_error = 0; +#ifndef OPENSSL_NO_SOCK static unsigned char cookie_secret[COOKIE_SECRET_LENGTH]; static int cookie_initialized = 0; +#endif static const char *lookup(int val, const STRINT_PAIR* list, const char* def) { @@ -741,6 +743,7 @@ void tlsext_cb(SSL *s, int client_server, int type, (void)BIO_flush(bio); } +#ifndef OPENSSL_NO_SOCK int generate_cookie_callback(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len) { @@ -803,6 +806,7 @@ int verify_cookie_callback(SSL *ssl, const unsigned char *cookie, return 0; } +#endif /* * Example of extended certificate handling. Where the standard support of |