From 27e6cd7b4e503aa15ad7a2dc53633f343d018dda Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Thu, 5 Jun 2014 20:42:09 +0400 Subject: [PATCH] Make setup actually run tests --- ctypescrypto/pkey.py | 75 +++++++++++++++++++++++++++----------------- setup.py | 8 ++--- tests/testpkey.py | 28 ++++++++++------- 3 files changed, 68 insertions(+), 43 deletions(-) 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