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

Side by Side Diff: mozilla/security/nss/lib/pki/pki.h

Issue 14249009: Change the NSS and NSPR source tree to the new directory structure to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 8 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 | « mozilla/security/nss/lib/pki/nsspkit.h ('k') | mozilla/security/nss/lib/pki/pki3hack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef PKI_H
6 #define PKI_H
7
8 #ifdef DEBUG
9 static const char PKI_CVS_ID[] = "@(#) $RCSfile: pki.h,v $ $Revision: 1.15 $ $Da te: 2012/05/17 21:39:40 $";
10 #endif /* DEBUG */
11
12 #ifndef NSSDEVT_H
13 #include "nssdevt.h"
14 #endif /* NSSDEVT_H */
15
16 #ifndef NSSPKI_H
17 #include "nsspki.h"
18 #endif /* NSSPKI_H */
19
20 #ifndef PKIT_H
21 #include "pkit.h"
22 #endif /* PKIT_H */
23
24 PR_BEGIN_EXTERN_C
25
26 NSS_EXTERN NSSCallback *
27 nssTrustDomain_GetDefaultCallback
28 (
29 NSSTrustDomain *td,
30 PRStatus *statusOpt
31 );
32
33 NSS_EXTERN NSSCertificate **
34 nssTrustDomain_FindCertificatesBySubject
35 (
36 NSSTrustDomain *td,
37 NSSDER *subject,
38 NSSCertificate *rvOpt[],
39 PRUint32 maximumOpt,
40 NSSArena *arenaOpt
41 );
42
43 NSS_EXTERN NSSTrust *
44 nssTrustDomain_FindTrustForCertificate
45 (
46 NSSTrustDomain *td,
47 NSSCertificate *c
48 );
49
50 NSS_EXTERN NSSCertificate *
51 nssCertificate_AddRef
52 (
53 NSSCertificate *c
54 );
55
56 NSS_EXTERN PRStatus
57 nssCertificate_Destroy
58 (
59 NSSCertificate *c
60 );
61
62 NSS_EXTERN NSSDER *
63 nssCertificate_GetEncoding
64 (
65 NSSCertificate *c
66 );
67
68 NSS_EXTERN NSSDER *
69 nssCertificate_GetIssuer
70 (
71 NSSCertificate *c
72 );
73
74 NSS_EXTERN NSSDER *
75 nssCertificate_GetSerialNumber
76 (
77 NSSCertificate *c
78 );
79
80 NSS_EXTERN NSSDER *
81 nssCertificate_GetSubject
82 (
83 NSSCertificate *c
84 );
85
86 /* Returns a copy, Caller must free using nss_ZFreeIf */
87 NSS_EXTERN NSSUTF8 *
88 nssCertificate_GetNickname
89 (
90 NSSCertificate *c,
91 NSSToken *tokenOpt
92 );
93
94 NSS_EXTERN NSSASCII7 *
95 nssCertificate_GetEmailAddress
96 (
97 NSSCertificate *c
98 );
99
100 NSS_EXTERN PRBool
101 nssCertificate_IssuerAndSerialEqual
102 (
103 NSSCertificate *c1,
104 NSSCertificate *c2
105 );
106
107 NSS_EXTERN NSSPrivateKey *
108 nssPrivateKey_AddRef
109 (
110 NSSPrivateKey *vk
111 );
112
113 NSS_EXTERN PRStatus
114 nssPrivateKey_Destroy
115 (
116 NSSPrivateKey *vk
117 );
118
119 NSS_EXTERN NSSItem *
120 nssPrivateKey_GetID
121 (
122 NSSPrivateKey *vk
123 );
124
125 NSS_EXTERN NSSUTF8 *
126 nssPrivateKey_GetNickname
127 (
128 NSSPrivateKey *vk,
129 NSSToken *tokenOpt
130 );
131
132 NSS_EXTERN PRStatus
133 nssPublicKey_Destroy
134 (
135 NSSPublicKey *bk
136 );
137
138 NSS_EXTERN NSSItem *
139 nssPublicKey_GetID
140 (
141 NSSPublicKey *vk
142 );
143
144 NSS_EXTERN NSSCertificate **
145 nssCryptoContext_FindCertificatesBySubject
146 (
147 NSSCryptoContext *cc,
148 NSSDER *subject,
149 NSSCertificate *rvOpt[],
150 PRUint32 maximumOpt, /* 0 for no max */
151 NSSArena *arenaOpt
152 );
153
154 /* putting here for now, needs more thought */
155 NSS_EXTERN PRStatus
156 nssCryptoContext_ImportTrust
157 (
158 NSSCryptoContext *cc,
159 NSSTrust *trust
160 );
161
162 NSS_EXTERN NSSTrust *
163 nssCryptoContext_FindTrustForCertificate
164 (
165 NSSCryptoContext *cc,
166 NSSCertificate *cert
167 );
168
169 NSS_EXTERN PRStatus
170 nssCryptoContext_ImportSMIMEProfile
171 (
172 NSSCryptoContext *cc,
173 nssSMIMEProfile *profile
174 );
175
176 NSS_EXTERN nssSMIMEProfile *
177 nssCryptoContext_FindSMIMEProfileForCertificate
178 (
179 NSSCryptoContext *cc,
180 NSSCertificate *cert
181 );
182
183 NSS_EXTERN NSSTrust *
184 nssTrust_AddRef
185 (
186 NSSTrust *trust
187 );
188
189 NSS_EXTERN PRStatus
190 nssTrust_Destroy
191 (
192 NSSTrust *trust
193 );
194
195 NSS_EXTERN nssSMIMEProfile *
196 nssSMIMEProfile_AddRef
197 (
198 nssSMIMEProfile *profile
199 );
200
201 NSS_EXTERN PRStatus
202 nssSMIMEProfile_Destroy
203 (
204 nssSMIMEProfile *profile
205 );
206
207 NSS_EXTERN nssSMIMEProfile *
208 nssSMIMEProfile_Create
209 (
210 NSSCertificate *cert,
211 NSSItem *profileTime,
212 NSSItem *profileData
213 );
214
215 PR_END_EXTERN_C
216
217 #endif /* PKI_H */
OLDNEW
« no previous file with comments | « mozilla/security/nss/lib/pki/nsspkit.h ('k') | mozilla/security/nss/lib/pki/pki3hack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698