commit | 66ded6a2ef4d23345acd9539edde7b9e7174c7fa | [log] [tgz] |
---|---|---|
author | Maximilian Hils <git@maximilianhils.com> | Wed Aug 26 06:02:03 2015 +0200 |
committer | Maximilian Hils <git@maximilianhils.com> | Wed Aug 26 06:02:03 2015 +0200 |
tree | ebdddc88bf7939ae221caeb78cf3bc31fabbe42d | |
parent | a78e94033412487c5cce220e8b8268f280881f5c [diff] |
always use alpn decorator
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 @@ _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 *")