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 decoding, verification. | 6 * PKCS7 decoding, verification. |
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 /* XXX do not want to have to include */ | 12 /* XXX do not want to have to include */ |
15 #include "certdb.h" /* certdb.h -- the trust stuff needed by */ | 13 #include "certdb.h" /* certdb.h -- the trust stuff needed by */ |
16 /* the add certificate code needs to get */ | 14 /* the add certificate code needs to get */ |
17 /* rewritten/abstracted and then this */ | 15 /* rewritten/abstracted and then this */ |
18 /* include should be removed! */ | 16 /* include should be removed! */ |
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 /* | 1923 /* |
1926 * No signature, or more than one, means no deal. | 1924 * No signature, or more than one, means no deal. |
1927 */ | 1925 */ |
1928 if (signerinfos == NULL || signerinfos[0] == NULL || signerinfos[1] != NULL) | 1926 if (signerinfos == NULL || signerinfos[0] == NULL || signerinfos[1] != NULL) |
1929 return NULL; | 1927 return NULL; |
1930 | 1928 |
1931 attr = sec_PKCS7FindAttribute (signerinfos[0]->authAttr, | 1929 attr = sec_PKCS7FindAttribute (signerinfos[0]->authAttr, |
1932 SEC_OID_PKCS9_SIGNING_TIME, PR_TRUE); | 1930 SEC_OID_PKCS9_SIGNING_TIME, PR_TRUE); |
1933 return sec_PKCS7AttributeValue (attr); | 1931 return sec_PKCS7AttributeValue (attr); |
1934 } | 1932 } |
OLD | NEW |