"""
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
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,)