summaryrefslogtreecommitdiffstats
path: root/apps/s_client.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2007-11-15 13:32:16 +0000
committerBen Laurie <ben@openssl.org>2007-11-15 13:32:16 +0000
commite66deb6817b917497b9acfbbbdb41a892400052c (patch)
treedcf0b205087c55e0b7777ed6cffea049b0cb54ba /apps/s_client.c
parentcc9a645a0277e582009fbf83bde81045e233b5ba (diff)
Fix warnings.
Diffstat (limited to 'apps/s_client.c')
-rw-r--r--apps/s_client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index f444d27a9f..a4983c178f 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -181,7 +181,9 @@ static int c_showcerts=0;
static void sc_usage(void);
static void print_stuff(BIO *berr,SSL *con,int full);
+#ifndef OPENSSL_NO_TLSEXT
static int ocsp_resp_cb(SSL *s, void *arg);
+#endif
static BIO *bio_c_out=NULL;
static int c_quiet=0;
static int c_ign_eof=0;
@@ -1453,6 +1455,8 @@ static void print_stuff(BIO *bio, SSL *s, int full)
(void)BIO_flush(bio);
}
+#ifndef OPENSSL_NO_TLSEXT
+
static int ocsp_resp_cb(SSL *s, void *arg)
{
const unsigned char *p;
@@ -1478,3 +1482,4 @@ static int ocsp_resp_cb(SSL *s, void *arg)
OCSP_RESPONSE_free(rsp);
return 1;
}
+#endif /* ndef OPENSSL_NO_TLSEXT */