コード例 #1
0
ファイル: SMIME.py プロジェクト: rodrigc/m2crypto
 def write(self, out_bio, pkcs7, data_bio=None, flags=0):
     assert isinstance(pkcs7, PKCS7)
     if data_bio is None:
         return m2.smime_write_pkcs7(out_bio._ptr(), pkcs7._ptr(), flags)
     else:
         return m2.smime_write_pkcs7_multi(out_bio._ptr(), pkcs7._ptr(),
                                           data_bio._ptr(), flags)
コード例 #2
0
 def write(self, out_bio, pkcs7, data_bio=None, flags=0):
     assert isinstance(pkcs7, PKCS7)
     if data_bio is None:
         return m2.smime_write_pkcs7(out_bio._ptr(), pkcs7._ptr(), flags)
     else:
         return m2.smime_write_pkcs7_multi(out_bio._ptr(), pkcs7._ptr(),
                                           data_bio._ptr(), flags)
コード例 #3
0
 def write(self, out_bio, pkcs7, data_bio=None, flags=0):
     # type: (BIO.BIO, PKCS7, Optional[BIO.BIO], int) -> int
     assert isinstance(pkcs7, PKCS7)
     if data_bio is None:
         return m2.smime_write_pkcs7(out_bio._ptr(), pkcs7._ptr(), flags)
     else:
         return m2.smime_write_pkcs7_multi(out_bio._ptr(), pkcs7._ptr(),
                                           data_bio._ptr(), flags)
コード例 #4
0
ファイル: SMIME.py プロジェクト: mcepl/M2Crypto
 def write(self, out_bio, pkcs7, data_bio=None, flags=0):
     # type: (BIO.BIO, PKCS7, Optional[BIO.BIO], int) -> int
     assert isinstance(pkcs7, PKCS7)
     if data_bio is None:
         return m2.smime_write_pkcs7(out_bio._ptr(), pkcs7._ptr(), flags)
     else:
         return m2.smime_write_pkcs7_multi(out_bio._ptr(), pkcs7._ptr(),
                                           data_bio._ptr(), flags)