~exarkun/pyopenssl/use-opentls

« back to all changes in this revision

Viewing changes to OpenSSL/_util.py

  • Committer: Jean-Paul Calderone
  • Date: 2014-01-08 21:55:06 UTC
  • Revision ID: exarkun@twistedmatrix.com-20140108215506-fpdoq32jrsjy9sfl
adjust to reflect the cryptography api change

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from cryptography.hazmat.backends.openssl import backend
2
 
ffi = backend.ffi
3
 
lib = backend.lib
 
1
from cryptography.hazmat.bindings.openssl.binding import Binding
 
2
binding = Binding()
 
3
ffi = binding.ffi
 
4
lib = binding.lib
4
5
 
5
6
def exception_from_error_queue(exceptionType):
6
7
    errors = []