r=libcrypto.BIO_write(self.bio,data,len(data))
if r==-2:
raise NotImplementedError("Function not supported by this BIO")
if r<len(data):
raise IOError("Not all data were successfully written")
r=libcrypto.BIO_write(self.bio,data,len(data))
if r==-2:
raise NotImplementedError("Function not supported by this BIO")
if r<len(data):
raise IOError("Not all data were successfully written")