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 * certt.h - public data structures for the certificate library | 5 * certt.h - public data structures for the certificate library |
6 */ | 6 */ |
7 #ifndef _CERTT_H_ | 7 #ifndef _CERTT_H_ |
8 #define _CERTT_H_ | 8 #define _CERTT_H_ |
9 | 9 |
10 #include "prclist.h" | 10 #include "prclist.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 CERTSubjectNode *tail; /* do we need tail? */ | 179 CERTSubjectNode *tail; /* do we need tail? */ |
180 void *entry; | 180 void *entry; |
181 }; | 181 }; |
182 | 182 |
183 /* | 183 /* |
184 ** An X.509 certificate object (the unsigned form) | 184 ** An X.509 certificate object (the unsigned form) |
185 */ | 185 */ |
186 struct CERTCertificateStr { | 186 struct CERTCertificateStr { |
187 /* the arena is used to allocate any data structures that have the same | 187 /* the arena is used to allocate any data structures that have the same |
188 * lifetime as the cert. This is all stuff that hangs off of the cert | 188 * lifetime as the cert. This is all stuff that hangs off of the cert |
189 * structure, and is all freed at the same time. I is used when the | 189 * structure, and is all freed at the same time. It is used when the |
190 * cert is decoded, destroyed, and at some times when it changes | 190 * cert is decoded, destroyed, and at some times when it changes |
191 * state | 191 * state |
192 */ | 192 */ |
193 PLArenaPool *arena; | 193 PLArenaPool *arena; |
194 | 194 |
195 /* The following fields are static after the cert has been decoded */ | 195 /* The following fields are static after the cert has been decoded */ |
196 char *subjectName; | 196 char *subjectName; |
197 char *issuerName; | 197 char *issuerName; |
198 CERTSignedData signatureWrap; /* XXX */ | 198 CERTSignedData signatureWrap; /* XXX */ |
199 SECItem derCert; /* original DER for the cert */ | 199 SECItem derCert; /* original DER for the cert */ |
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 SEC_ASN1_CHOOSER_DECLARE(CERT_SetOfSignedCrlTemplate) | 1340 SEC_ASN1_CHOOSER_DECLARE(CERT_SetOfSignedCrlTemplate) |
1341 SEC_ASN1_CHOOSER_DECLARE(CERT_SignedDataTemplate) | 1341 SEC_ASN1_CHOOSER_DECLARE(CERT_SignedDataTemplate) |
1342 SEC_ASN1_CHOOSER_DECLARE(CERT_SubjectPublicKeyInfoTemplate) | 1342 SEC_ASN1_CHOOSER_DECLARE(CERT_SubjectPublicKeyInfoTemplate) |
1343 SEC_ASN1_CHOOSER_DECLARE(SEC_SignedCertificateTemplate) | 1343 SEC_ASN1_CHOOSER_DECLARE(SEC_SignedCertificateTemplate) |
1344 SEC_ASN1_CHOOSER_DECLARE(CERT_SignedCrlTemplate) | 1344 SEC_ASN1_CHOOSER_DECLARE(CERT_SignedCrlTemplate) |
1345 SEC_ASN1_CHOOSER_DECLARE(CERT_TimeChoiceTemplate) | 1345 SEC_ASN1_CHOOSER_DECLARE(CERT_TimeChoiceTemplate) |
1346 | 1346 |
1347 SEC_END_PROTOS | 1347 SEC_END_PROTOS |
1348 | 1348 |
1349 #endif /* _CERTT_H_ */ | 1349 #endif /* _CERTT_H_ */ |
OLD | NEW |