diff options
author | Matt Caswell <matt@openssl.org> | 2016-12-07 17:27:22 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-12-08 17:21:09 +0000 |
commit | cbb0954471b16a40e67639522b30009393983285 (patch) | |
tree | 921c784c8ca2fc299b0f8bfc1439c331654f5e72 /ssl/ssl_lib.c | |
parent | d270de322c7bfb9c1e7509fbc24e3bf6fde713e6 (diff) |
Introduce TLSEXT_STATUSTYPE_nothing constant
The existing code used the magic number -1 to represent the absence of
a status_type in the extension. This commit replaces it with a macro.
Perl changes reviewed by Richard Levitte. Non-perl changes reviewed by Rich
Salz
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 4d41b17fa0..65e3ba1824 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2556,7 +2556,7 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth) */ ret->options |= SSL_OP_NO_COMPRESSION; - ret->tlsext_status_type = -1; + ret->tlsext_status_type = TLSEXT_STATUSTYPE_nothing; return ret; err: |