summaryrefslogtreecommitdiff
path: root/OpenSSL/SSL.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-26 06:02:03 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-26 06:02:03 +0200
commit66ded6a2ef4d23345acd9539edde7b9e7174c7fa (patch)
treeebdddc88bf7939ae221caeb78cf3bc31fabbe42d /OpenSSL/SSL.py
parenta78e94033412487c5cce220e8b8268f280881f5c (diff)
downloadpyopenssl-66ded6a2ef4d23345acd9539edde7b9e7174c7fa.tar.gz
always use alpn decorator
Diffstat (limited to 'OpenSSL/SSL.py')
-rw-r--r--OpenSSL/SSL.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index 9b27013..2317404 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -1952,13 +1952,11 @@ class Connection(object):
_lib.SSL_set_alpn_protos(self._ssl, input_str, input_str_len)
+ @_requires_alpn
def get_alpn_proto_negotiated(self):
"""
Get the protocol that was negotiated by ALPN.
"""
- if not _lib.Cryptography_HAS_ALPN:
- raise NotImplementedError("ALPN not available")
-
data = _ffi.new("unsigned char **")
data_len = _ffi.new("unsigned int *")