]> git.pld-linux.org Git - packages/python-M2Crypto.git/commitdiff
- added M2Crypto.SMIME.PKCS7.get0_signers()
authorArtur Frysiak <artur@frysiak.net>
Wed, 8 Oct 2003 14:41:19 +0000 (14:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    M2Crypto-pkcs7_get0_signers.patch -> 1.1

M2Crypto-pkcs7_get0_signers.patch [new file with mode: 0644]

diff --git a/M2Crypto-pkcs7_get0_signers.patch b/M2Crypto-pkcs7_get0_signers.patch
new file mode 100644 (file)
index 0000000..2e9776f
--- /dev/null
@@ -0,0 +1,25 @@
+--- m2crypto-0.11/M2Crypto/SMIME.py.wiget      2002-12-23 04:48:35.000000000 +0100
++++ m2crypto-0.11/M2Crypto/SMIME.py    2003-10-08 16:18:10.682936771 +0200
+@@ -54,6 +54,9 @@
+     def write_der(self, bio):
+         return m2.pkcs7_write_bio_der(self.pkcs7, bio._ptr())
++    def get0_signers(self, certs, flags = 0):
++      return X509.X509_Stack(m2.pkcs7_get0_signers(self.pkcs7, certs.stack, flags), 1)
++
+ def load_pkcs7(p7file):
+     bio = m2.bio_new_file(p7file, 'r')
+--- m2crypto-0.11/SWIG/_pkcs7.i.wiget  2003-10-08 16:24:43.072269817 +0200
++++ m2crypto-0.11/SWIG/_pkcs7.i        2003-10-08 16:25:00.601515310 +0200
+@@ -170,5 +170,10 @@
+ int smime_crlf_copy(BIO *in, BIO *out) {
+     return SMIME_crlf_copy(in, out, PKCS7_TEXT);
+ }
++
++/* return STACK_OF(X509)* */
++STACK *pkcs7_get0_signers(PKCS7 *p7, STACK *certs, int flags) {
++      return PKCS7_get0_signers(p7,certs,flags);
++}
+ %}
This page took 0.120312 seconds and 4 git commands to generate.