Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: nss/lib/certdb/genname.h

Issue 16132005: Allow NSS to be built with NO_NSPR_10_SUPPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « nss/lib/certdb/crl.c ('k') | nss/lib/certdb/genname.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef _GENAME_H_ 5 #ifndef _GENAME_H_
6 #define _GENAME_H_ 6 #define _GENAME_H_
7 7
8 #include "plarena.h" 8 #include "plarena.h"
9 #include "seccomon.h" 9 #include "seccomon.h"
10 #include "secoidt.h" 10 #include "secoidt.h"
11 #include "secasn1.h" 11 #include "secasn1.h"
12 #include "secder.h" 12 #include "secder.h"
13 #include "certt.h" 13 #include "certt.h"
14 14
15 /************************************************************************/ 15 /************************************************************************/
16 SEC_BEGIN_PROTOS 16 SEC_BEGIN_PROTOS
17 17
18 extern const SEC_ASN1Template CERT_GeneralNamesTemplate[]; 18 extern const SEC_ASN1Template CERT_GeneralNamesTemplate[];
19 19
20 extern SECItem ** 20 extern SECItem **
21 cert_EncodeGeneralNames(PRArenaPool *arena, CERTGeneralName *names); 21 cert_EncodeGeneralNames(PLArenaPool *arena, CERTGeneralName *names);
22 22
23 extern CERTGeneralName * 23 extern CERTGeneralName *
24 cert_DecodeGeneralNames(PRArenaPool *arena, SECItem **encodedGenName); 24 cert_DecodeGeneralNames(PLArenaPool *arena, SECItem **encodedGenName);
25 25
26 extern SECStatus 26 extern SECStatus
27 cert_DestroyGeneralNames(CERTGeneralName *name); 27 cert_DestroyGeneralNames(CERTGeneralName *name);
28 28
29 extern SECStatus 29 extern SECStatus
30 cert_EncodeNameConstraints(CERTNameConstraints *constraints, PRArenaPool *arena, 30 cert_EncodeNameConstraints(CERTNameConstraints *constraints, PLArenaPool *arena,
31 SECItem *dest); 31 SECItem *dest);
32 32
33 extern CERTNameConstraints * 33 extern CERTNameConstraints *
34 cert_DecodeNameConstraints(PRArenaPool *arena, const SECItem *encodedConstraints ); 34 cert_DecodeNameConstraints(PLArenaPool *arena, const SECItem *encodedConstraints );
35 35
36 extern CERTGeneralName * 36 extern CERTGeneralName *
37 cert_CombineNamesLists(CERTGeneralName *list1, CERTGeneralName *list2); 37 cert_CombineNamesLists(CERTGeneralName *list1, CERTGeneralName *list2);
38 38
39 extern CERTNameConstraint * 39 extern CERTNameConstraint *
40 cert_CombineConstraintsLists(CERTNameConstraint *list1, CERTNameConstraint *list 2); 40 cert_CombineConstraintsLists(CERTNameConstraint *list1, CERTNameConstraint *list 2);
41 41
42 /*********************************************************************/ 42 /*********************************************************************/
43 /* A thread safe implementation of General Names */ 43 /* A thread safe implementation of General Names */
44 /*********************************************************************/ 44 /*********************************************************************/
45 45
46 /* Destroy a Single CERTGeneralName */ 46 /* Destroy a Single CERTGeneralName */
47 void 47 void
48 CERT_DestroyGeneralName(CERTGeneralName *name); 48 CERT_DestroyGeneralName(CERTGeneralName *name);
49 49
50 SECStatus 50 SECStatus
51 CERT_CompareGeneralName(CERTGeneralName *a, CERTGeneralName *b); 51 CERT_CompareGeneralName(CERTGeneralName *a, CERTGeneralName *b);
52 52
53 SECStatus 53 SECStatus
54 CERT_CopyGeneralName(PRArenaPool *arena, 54 CERT_CopyGeneralName(PLArenaPool *arena,
55 CERTGeneralName *dest, 55 CERTGeneralName *dest,
56 CERTGeneralName *src); 56 CERTGeneralName *src);
57 57
58 /* General Name Lists are a thread safe, reference counting layer to 58 /* General Name Lists are a thread safe, reference counting layer to
59 * general names */ 59 * general names */
60 60
61 /* Destroys a CERTGeneralNameList */ 61 /* Destroys a CERTGeneralNameList */
62 void 62 void
63 CERT_DestroyGeneralNameList(CERTGeneralNameList *list); 63 CERT_DestroyGeneralNameList(CERTGeneralNameList *list);
64 64
65 /* Creates a CERTGeneralNameList */ 65 /* Creates a CERTGeneralNameList */
66 CERTGeneralNameList * 66 CERTGeneralNameList *
67 CERT_CreateGeneralNameList(CERTGeneralName *name); 67 CERT_CreateGeneralNameList(CERTGeneralName *name);
68 68
69 /* Compares two CERTGeneralNameList */ 69 /* Compares two CERTGeneralNameList */
70 SECStatus 70 SECStatus
71 CERT_CompareGeneralNameLists(CERTGeneralNameList *a, CERTGeneralNameList *b); 71 CERT_CompareGeneralNameLists(CERTGeneralNameList *a, CERTGeneralNameList *b);
72 72
73 /* returns a copy of the first name of the type requested */ 73 /* returns a copy of the first name of the type requested */
74 void * 74 void *
75 CERT_GetGeneralNameFromListByType(CERTGeneralNameList *list, 75 CERT_GetGeneralNameFromListByType(CERTGeneralNameList *list,
76 CERTGeneralNameType type, 76 CERTGeneralNameType type,
77 » » » » PRArenaPool *arena); 77 » » » » PLArenaPool *arena);
78 78
79 /* Adds a name to the tail of the list */ 79 /* Adds a name to the tail of the list */
80 void 80 void
81 CERT_AddGeneralNameToList(CERTGeneralNameList *list, 81 CERT_AddGeneralNameToList(CERTGeneralNameList *list,
82 CERTGeneralNameType type, 82 CERTGeneralNameType type,
83 void *data, SECItem *oid); 83 void *data, SECItem *oid);
84 84
85 /* returns a duplicate of the CERTGeneralNameList */ 85 /* returns a duplicate of the CERTGeneralNameList */
86 CERTGeneralNameList * 86 CERTGeneralNameList *
87 CERT_DupGeneralNameList(CERTGeneralNameList *list); 87 CERT_DupGeneralNameList(CERTGeneralNameList *list);
88 88
89 /* returns the number of CERTGeneralName objects in the doubly linked 89 /* returns the number of CERTGeneralName objects in the doubly linked
90 ** list of which *names is a member. 90 ** list of which *names is a member.
91 */ 91 */
92 extern int 92 extern int
93 CERT_GetNamesLength(CERTGeneralName *names); 93 CERT_GetNamesLength(CERTGeneralName *names);
94 94
95 /************************************************************************/ 95 /************************************************************************/
96 96
97 SECStatus 97 SECStatus
98 CERT_CompareNameSpace(CERTCertificate *cert, 98 CERT_CompareNameSpace(CERTCertificate *cert,
99 CERTGeneralName *namesList, 99 CERTGeneralName *namesList,
100 CERTCertificate **certsList, 100 CERTCertificate **certsList,
101 » » PRArenaPool *reqArena, 101 » » PLArenaPool *reqArena,
102 CERTCertificate **pBadCert); 102 CERTCertificate **pBadCert);
103 103
104 SEC_END_PROTOS 104 SEC_END_PROTOS
105 105
106 #endif 106 #endif
OLDNEW
« no previous file with comments | « nss/lib/certdb/crl.c ('k') | nss/lib/certdb/genname.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698