aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEeshan Garg <jerryguitarist@gmail.com>2015-05-04 17:41:47 +0530
committerEeshan Garg <jerryguitarist@gmail.com>2015-05-04 17:41:47 +0530
commit118d49601551d59572e30e19b3a0ae7a0df6d3e9 (patch)
tree78ed709b552a35d440492e21e5ea9a888c1a6b64 /src
parent25b1398738e74fe3eb5c4557aacfb897dd2caef4 (diff)
downloadcryptography-118d49601551d59572e30e19b3a0ae7a0df6d3e9.tar.gz
cryptography-118d49601551d59572e30e19b3a0ae7a0df6d3e9.tar.bz2
cryptography-118d49601551d59572e30e19b3a0ae7a0df6d3e9.zip
Add OpenSSL binding for SSL_get_tlsext_status_ocsp_resp
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/bindings/openssl/ssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/ssl.py b/src/cryptography/hazmat/bindings/openssl/ssl.py
index 4a824ae5..6493e867 100644
--- a/src/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/src/cryptography/hazmat/bindings/openssl/ssl.py
@@ -325,6 +325,7 @@ void SSL_CTX_set_tlsext_servername_callback(
is fraught with peril thanks to OS distributions we check some constants
to determine if they are supported or not */
long SSL_set_tlsext_status_ocsp_resp(SSL *, unsigned char *, int);
+long SSL_get_tlsext_status_ocsp_resp(SSL *, const unsigned char **);
long SSL_CTX_set_tlsext_status_cb(SSL_CTX *, int(*)(SSL *, void *));
long SSL_session_reused(SSL *);
@@ -434,6 +435,7 @@ static const long Cryptography_HAS_STATUS_REQ_OCSP_RESP = 1;
#else
static const long Cryptography_HAS_STATUS_REQ_OCSP_RESP = 0;
long (*SSL_set_tlsext_status_ocsp_resp)(SSL *, unsigned char *, int) = NULL;
+long (*SSL_get_tlsext_status_ocsp_resp)(SSL *, const unsigned char **) = NULL;
#endif
#ifdef SSL_MODE_RELEASE_BUFFERS
@@ -620,6 +622,7 @@ CONDITIONAL_NAMES = {
"Cryptography_HAS_STATUS_REQ_OCSP_RESP": [
"SSL_set_tlsext_status_ocsp_resp",
+ "SSL_get_tlsext_status_ocsp_resp",
],
"Cryptography_HAS_RELEASE_BUFFERS": [