From: Ben Laurie Date: Thu, 15 Nov 2007 13:32:16 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: OpenSSL_0_9_8h~111 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e66deb6817b917497b9acfbbbdb41a892400052c;p=oweals%2Fopenssl.git Fix warnings. --- 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 */