From: Victor Wagner Date: Thu, 5 Jun 2014 16:42:09 +0000 (+0400) Subject: Make setup actually run tests X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=27e6cd7b4e503aa15ad7a2dc53633f343d018dda;p=oss%2Fctypescrypto.git Make setup actually run tests --- diff --git a/ctypescrypto/pkey.py b/ctypescrypto/pkey.py index 676d324..0ef789d 100644 --- a/ctypescrypto/pkey.py +++ b/ctypescrypto/pkey.py @@ -1,13 +1,13 @@ -from ctypes import byref,c_int,c_long, c_longlong, create_string_buffer +from ctypes import c_char_p,c_void_p,byref,c_int,c_long, c_longlong, create_string_buffer,CFUNCTYPE,POINTER from ctypescrypto import libcrypto -from ctypescrypto.exception import LibCryptoErrors,clear_err_stack +from ctypescrypto.exception import LibCryptoError,clear_err_stack from ctypescrypto.bio import Membio class PKeyError(LibCryptoError): pass CALLBACK_FUNC=CFUNCTYPE(c_int,c_char_p,c_int,c_int,c_char_p) -def password_callback(buf,length,rwflag,u) +def password_callback(buf,length,rwflag,u): cnt=len(u) if length