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 implementation -- the exported parts that are used whether | 6 * PKCS7 implementation -- the exported parts that are used whether |
7 * creating or decoding. | 7 * creating or decoding. |
8 * | |
9 * $Id$ | |
10 */ | 8 */ |
11 | 9 |
12 #include "p7local.h" | 10 #include "p7local.h" |
13 | 11 |
14 #include "cert.h" | 12 #include "cert.h" |
15 #include "secitem.h" | 13 #include "secitem.h" |
16 #include "secoid.h" | 14 #include "secoid.h" |
17 #include "pk11func.h" | 15 #include "pk11func.h" |
18 | 16 |
19 /* | 17 /* |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 682 |
685 int | 683 int |
686 SEC_PKCS7GetKeyLength(SEC_PKCS7ContentInfo *cinfo) | 684 SEC_PKCS7GetKeyLength(SEC_PKCS7ContentInfo *cinfo) |
687 { | 685 { |
688 if (cinfo->contentTypeTag->offset == SEC_OID_PKCS7_ENVELOPED_DATA) | 686 if (cinfo->contentTypeTag->offset == SEC_OID_PKCS7_ENVELOPED_DATA) |
689 return cinfo->content.envelopedData->encContentInfo.keysize; | 687 return cinfo->content.envelopedData->encContentInfo.keysize; |
690 else | 688 else |
691 return 0; | 689 return 0; |
692 } | 690 } |
693 | 691 |
OLD | NEW |