OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 /* | 5 /* |
6 * PKCS7 encoding. | 6 * PKCS7 encoding. |
7 * | |
8 * $Id$ | |
9 */ | 7 */ |
10 | 8 |
11 #include "p7local.h" | 9 #include "p7local.h" |
12 | 10 |
13 #include "cert.h" | 11 #include "cert.h" |
14 #include "cryptohi.h" | 12 #include "cryptohi.h" |
15 #include "keyhi.h" | 13 #include "keyhi.h" |
16 #include "secasn1.h" | 14 #include "secasn1.h" |
17 #include "secoid.h" | 15 #include "secoid.h" |
18 #include "secitem.h" | 16 #include "secitem.h" |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 { | 1101 { |
1104 SECStatus rv; | 1102 SECStatus rv; |
1105 | 1103 |
1106 rv = SEC_PKCS7PrepareForEncode (cinfo, bulkkey, pwfn, pwfnarg); | 1104 rv = SEC_PKCS7PrepareForEncode (cinfo, bulkkey, pwfn, pwfnarg); |
1107 if (rv != SECSuccess) | 1105 if (rv != SECSuccess) |
1108 return NULL; | 1106 return NULL; |
1109 | 1107 |
1110 return SEC_ASN1EncodeItem (pool, dest, cinfo, sec_PKCS7ContentInfoTemplate); | 1108 return SEC_ASN1EncodeItem (pool, dest, cinfo, sec_PKCS7ContentInfoTemplate); |
1111 } | 1109 } |
1112 | 1110 |
OLD | NEW |