2
* The contents of this file are subject to the Mozilla Public
3
* License Version 1.1 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of
5
* the License at http://www.mozilla.org/MPL/
7
* Software distributed under the License is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the License for the specific language governing
10
* rights and limitations under the License.
12
* The Original Code is the Netscape security libraries.
14
* The Initial Developer of the Original Code is Netscape
15
* Communications Corporation. Portions created by Netscape are
16
* Copyright (C) 1994-2000 Netscape Communications Corporation. All
21
* Alternatively, the contents of this file may be used under the
22
* terms of the GNU General Public License Version 2 or later (the
23
* "GPL"), in which case the provisions of the GPL are applicable
24
* instead of those above. If you wish to allow use of your
25
* version of this file only under the terms of the GPL and not to
26
* allow others to use your version of this file under the MPL,
27
* indicate your decision by deleting the provisions above and
28
* replace them with the notice and other provisions required by
29
* the GPL. If you do not delete the provisions above, a recipient
30
* may use your version of this file under either the MPL or the
38
static const char PKISTORE_CVS_ID[] = "@(#) $RCSfile: pkistore.h,v $ $Revision: 1.5 $ $Date: 2003/01/08 21:48:45 $ $Name: FIREFOX_1_0_RELEASE $";
43
#endif /* NSSPKIT_H */
54
* This is a set of routines for managing local stores of PKI objects.
55
* Currently, the only application is in crypto contexts, where the
56
* certificate store is used. In the future, methods should be added
57
* here for storing local references to keys.
63
* Manages local store of certificate, trust, and S/MIME profile objects.
64
* Within a crypto context, mappings of cert to trust and cert to S/MIME
65
* profile are always 1-1. Therefore, it is reasonable to store all objects
66
* in a single collection, indexed by the certificate.
69
NSS_EXTERN nssCertificateStore *
70
nssCertificateStore_Create
76
nssCertificateStore_Destroy
78
nssCertificateStore *store
82
nssCertificateStore_Add
84
nssCertificateStore *store,
89
nssCertificateStore_RemoveCertLOCKED
91
nssCertificateStore *store,
96
nssCertificateStore_Lock (
97
nssCertificateStore *store
101
nssCertificateStore_Unlock (
102
nssCertificateStore *store
105
NSS_EXTERN NSSCertificate **
106
nssCertificateStore_FindCertificatesBySubject
108
nssCertificateStore *store,
110
NSSCertificate *rvOpt[],
115
NSS_EXTERN NSSCertificate **
116
nssCertificateStore_FindCertificatesByNickname
118
nssCertificateStore *store,
120
NSSCertificate *rvOpt[],
125
NSS_EXTERN NSSCertificate **
126
nssCertificateStore_FindCertificatesByEmail
128
nssCertificateStore *store,
130
NSSCertificate *rvOpt[],
135
NSS_EXTERN NSSCertificate *
136
nssCertificateStore_FindCertificateByIssuerAndSerialNumber
138
nssCertificateStore *store,
143
NSS_EXTERN NSSCertificate *
144
nssCertificateStore_FindCertificateByEncodedCertificate
146
nssCertificateStore *store,
151
nssCertificateStore_AddTrust
153
nssCertificateStore *store,
157
NSS_EXTERN NSSTrust *
158
nssCertificateStore_FindTrustForCertificate
160
nssCertificateStore *store,
165
nssCertificateStore_AddSMIMEProfile
167
nssCertificateStore *store,
168
nssSMIMEProfile *profile
171
NSS_EXTERN nssSMIMEProfile *
172
nssCertificateStore_FindSMIMEProfileForCertificate
174
nssCertificateStore *store,
179
nssCertificateStore_DumpStoreInfo
181
nssCertificateStore *store,
182
void (* cert_dump_iter)(const void *, void *, void *),
188
#endif /* PKISTORE_H */