X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ctypescrypto%2Fbio.py;h=2743f705032ab407e8583c5bfe04c0a89125739b;hb=2feb549a3199f6d503adc81d7b32a20ab970c553;hp=a33310572cdc54213a70c10881044e0bce0c6fc9;hpb=b4ee51a0aca14c0af5853545b9e524cc1b57b656;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/bio.py b/ctypescrypto/bio.py index a333105..2743f70 100644 --- a/ctypescrypto/bio.py +++ b/ctypescrypto/bio.py @@ -3,7 +3,7 @@ Interface to OpenSSL BIO library """ from ctypescrypto import libcrypto from ctypes import c_char_p, c_void_p, c_int, string_at, c_long,POINTER,byref, create_string_buffer -class Membio: +class Membio(object): """ Provides interface to OpenSSL memory bios use str() or unicode() to get contents of writable bio @@ -83,6 +83,8 @@ class Membio: Resets the read-only bio to start and discards all data from writable bio """ libcrypto.BIO_ctrl(self.bio,1,0,None) + +__all__ = ['Membio'] libcrypto.BIO_s_mem.restype=c_void_p libcrypto.BIO_new.restype=c_void_p libcrypto.BIO_new.argtypes=(c_void_p,)