diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2016-05-11 00:48:49 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-07 17:05:52 +0100 |
commit | 4300aaf3512167c6759ba1feedcbb28e4ba8413a (patch) | |
tree | ccdb3e61223ec2eb4052ba09ab28b537d4bc9206 /ssl/s3_lib.c | |
parent | 56989dcd0e208dcad204e85367a20fab2a45e2f8 (diff) |
Add SSL_get_tlsext_status_type() method
The tlsext_status_type field in SSL is used by e.g. OpenResty to determine
if the client requested the certificate status, but SSL is now opaque.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index de7f1c08f2..025c003b3e 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -2971,6 +2971,11 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) ret = 1; break; + case SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE: + *(int *)parg = s->tlsext_status_type; + ret = 1; + break; + case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE: s->tlsext_status_type = larg; ret = 1; |