Skip to content

Commit

Permalink
Fixup some CFFI problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Apr 11, 2015
1 parent c13ba46 commit 1a966aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ def set_alpn_protos(self, protos):
# Build a C string from the list. We don't need to save this off
# because OpenSSL immediately copies the data out.
input_str = _ffi.new("unsigned char[]", protostr)
input_str_len = _ffi.new("unsigned", len(protostr))
_lib.SSL_CTX_set_alpn_protos(self._context, input_str)
input_str_len = _ffi.cast("unsigned", len(protostr))
_lib.SSL_CTX_set_alpn_protos(self._context, input_str, input_str_len)

def set_alpn_select_callback(self, callback):
"""
Expand Down

0 comments on commit 1a966aa

Please sign in to comment.