aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-05-04 08:01:30 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-05-04 08:01:30 -0500
commitd87db1cec44118a8e7fecb59b60f284e35ea6f6c (patch)
tree705ad918090886f700c6b4283adf21444f8e5e2d
parentf1b52e77cdd6785d00b0ae52043d63202e9bd969 (diff)
parent118d49601551d59572e30e19b3a0ae7a0df6d3e9 (diff)
downloadcryptography-d87db1cec44118a8e7fecb59b60f284e35ea6f6c.tar.gz
cryptography-d87db1cec44118a8e7fecb59b60f284e35ea6f6c.tar.bz2
cryptography-d87db1cec44118a8e7fecb59b60f284e35ea6f6c.zip
Merge pull request #1901 from eeshangarg/openssl-binding-SSL-get-tlsext-status-ocsp-resp
Add OpenSSL binding for SSL_get_tlsext_status_ocsp_resp
-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": [