diff options
author | Richard Levitte <levitte@openssl.org> | 2017-01-04 09:16:07 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-01-04 15:27:00 +0100 |
commit | 8f8c11d83f39197e373ae6cc75782f5cfc4467d7 (patch) | |
tree | 46e897e5b7af051f644d1b3eec88d18ed65c2cc3 /ssl | |
parent | 327d38d0ac1da6f6d7ad009260061630f4ec0c82 (diff) |
Don't build OCSP stuff when OCSP is disabled
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2173)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/statem/extensions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/statem/extensions.c b/ssl/statem/extensions.c index 2bb09c9507..8ccb76f09b 100644 --- a/ssl/statem/extensions.c +++ b/ssl/statem/extensions.c @@ -20,9 +20,11 @@ static int final_ec_pt_formats(SSL *s, unsigned int context, int sent, int *al); #endif static int init_session_ticket(SSL *s, unsigned int context); +#ifndef OPENSSL_NO_OCSP static int init_status_request(SSL *s, unsigned int context); static int final_status_request(SSL *s, unsigned int context, int sent, int *al); +#endif #ifndef OPENSSL_NO_NEXTPROTONEG static int init_npn(SSL *s, unsigned int context); #endif @@ -777,6 +779,7 @@ static int init_session_ticket(SSL *s, unsigned int context) return 1; } +#ifndef OPENSSL_NO_OCSP static int init_status_request(SSL *s, unsigned int context) { if (s->server) @@ -801,6 +804,7 @@ static int final_status_request(SSL *s, unsigned int context, int sent, return 1; } +#endif #ifndef OPENSSL_NO_NEXTPROTONEG static int init_npn(SSL *s, unsigned int context) |