~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

Viewing changes to security/nss-fips/lib/pki/pki.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
3
 *
 
4
 * The contents of this file are subject to the Mozilla Public License Version
 
5
 * 1.1 (the "License"); you may not use this file except in compliance with
 
6
 * the License. You may obtain a copy of the License at
 
7
 * http://www.mozilla.org/MPL/
 
8
 *
 
9
 * Software distributed under the License is distributed on an "AS IS" basis,
 
10
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
11
 * for the specific language governing rights and limitations under the
 
12
 * License.
 
13
 *
 
14
 * The Original Code is the Netscape security libraries.
 
15
 *
 
16
 * The Initial Developer of the Original Code is
 
17
 * Netscape Communications Corporation.
 
18
 * Portions created by the Initial Developer are Copyright (C) 1994-2000
 
19
 * the Initial Developer. All Rights Reserved.
 
20
 *
 
21
 * Contributor(s):
 
22
 *
 
23
 * Alternatively, the contents of this file may be used under the terms of
 
24
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
25
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
26
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
27
 * of those above. If you wish to allow use of your version of this file only
 
28
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
29
 * use your version of this file under the terms of the MPL, indicate your
 
30
 * decision by deleting the provisions above and replace them with the notice
 
31
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
32
 * the provisions above, a recipient may use your version of this file under
 
33
 * the terms of any one of the MPL, the GPL or the LGPL.
 
34
 *
 
35
 * ***** END LICENSE BLOCK ***** */
 
36
 
 
37
#ifndef PKI_H
 
38
#define PKI_H
 
39
 
 
40
#ifdef DEBUG
 
41
static const char PKI_CVS_ID[] = "@(#) $RCSfile: pki.h,v $ $Revision: 1.13 $ $Date: 2005/01/20 02:25:49 $";
 
42
#endif /* DEBUG */
 
43
 
 
44
#ifndef NSSDEVT_H
 
45
#include "nssdevt.h"
 
46
#endif /* NSSDEVT_H */
 
47
 
 
48
#ifndef NSSPKI_H
 
49
#include "nsspki.h"
 
50
#endif /* NSSPKI_H */
 
51
 
 
52
#ifndef PKIT_H
 
53
#include "pkit.h"
 
54
#endif /* PKIT_H */
 
55
 
 
56
PR_BEGIN_EXTERN_C
 
57
 
 
58
NSS_EXTERN NSSCallback *
 
59
nssTrustDomain_GetDefaultCallback
 
60
(
 
61
  NSSTrustDomain *td,
 
62
  PRStatus *statusOpt
 
63
);
 
64
 
 
65
NSS_EXTERN NSSCertificate **
 
66
nssTrustDomain_FindCertificatesBySubject
 
67
(
 
68
  NSSTrustDomain *td,
 
69
  NSSDER *subject,
 
70
  NSSCertificate *rvOpt[],
 
71
  PRUint32 maximumOpt,
 
72
  NSSArena *arenaOpt
 
73
);
 
74
 
 
75
NSS_EXTERN NSSTrust *
 
76
nssTrustDomain_FindTrustForCertificate
 
77
(
 
78
  NSSTrustDomain *td,
 
79
  NSSCertificate *c
 
80
);
 
81
 
 
82
NSS_EXTERN NSSCertificate *
 
83
nssCertificate_AddRef
 
84
(
 
85
  NSSCertificate *c
 
86
);
 
87
 
 
88
NSS_EXTERN PRStatus
 
89
nssCertificate_Destroy
 
90
(
 
91
  NSSCertificate *c
 
92
);
 
93
 
 
94
NSS_EXTERN NSSDER *
 
95
nssCertificate_GetEncoding
 
96
(
 
97
  NSSCertificate *c
 
98
);
 
99
 
 
100
NSS_EXTERN NSSDER *
 
101
nssCertificate_GetIssuer
 
102
(
 
103
  NSSCertificate *c
 
104
);
 
105
 
 
106
NSS_EXTERN NSSDER *
 
107
nssCertificate_GetSerialNumber
 
108
(
 
109
  NSSCertificate *c
 
110
);
 
111
 
 
112
NSS_EXTERN NSSDER *
 
113
nssCertificate_GetSubject
 
114
(
 
115
  NSSCertificate *c
 
116
);
 
117
 
 
118
NSS_EXTERN NSSUTF8 *
 
119
nssCertificate_GetNickname
 
120
(
 
121
  NSSCertificate *c,
 
122
  NSSToken *tokenOpt
 
123
);
 
124
 
 
125
NSS_EXTERN NSSASCII7 *
 
126
nssCertificate_GetEmailAddress
 
127
(
 
128
  NSSCertificate *c
 
129
);
 
130
 
 
131
NSS_EXTERN PRBool
 
132
nssCertificate_IssuerAndSerialEqual
 
133
(
 
134
  NSSCertificate *c1,
 
135
  NSSCertificate *c2
 
136
);
 
137
 
 
138
NSS_EXTERN NSSPrivateKey *
 
139
nssPrivateKey_AddRef
 
140
(
 
141
  NSSPrivateKey *vk
 
142
);
 
143
 
 
144
NSS_EXTERN PRStatus
 
145
nssPrivateKey_Destroy
 
146
(
 
147
  NSSPrivateKey *vk
 
148
);
 
149
 
 
150
NSS_EXTERN NSSItem *
 
151
nssPrivateKey_GetID
 
152
(
 
153
  NSSPrivateKey *vk
 
154
);
 
155
 
 
156
NSS_EXTERN NSSUTF8 *
 
157
nssPrivateKey_GetNickname
 
158
(
 
159
  NSSPrivateKey *vk,
 
160
  NSSToken *tokenOpt
 
161
);
 
162
 
 
163
NSS_EXTERN PRStatus
 
164
nssPublicKey_Destroy
 
165
(
 
166
  NSSPublicKey *bk
 
167
);
 
168
 
 
169
NSS_EXTERN NSSItem *
 
170
nssPublicKey_GetID
 
171
(
 
172
  NSSPublicKey *vk
 
173
);
 
174
 
 
175
NSS_EXTERN NSSCertificate **
 
176
nssCryptoContext_FindCertificatesBySubject
 
177
(
 
178
  NSSCryptoContext *cc,
 
179
  NSSDER *subject,
 
180
  NSSCertificate *rvOpt[],
 
181
  PRUint32 maximumOpt, /* 0 for no max */
 
182
  NSSArena *arenaOpt
 
183
);
 
184
 
 
185
/* putting here for now, needs more thought */
 
186
NSS_EXTERN PRStatus
 
187
nssCryptoContext_ImportTrust
 
188
(
 
189
  NSSCryptoContext *cc,
 
190
  NSSTrust *trust
 
191
);
 
192
 
 
193
NSS_EXTERN NSSTrust *
 
194
nssCryptoContext_FindTrustForCertificate
 
195
(
 
196
  NSSCryptoContext *cc,
 
197
  NSSCertificate *cert
 
198
);
 
199
 
 
200
NSS_EXTERN PRStatus
 
201
nssCryptoContext_ImportSMIMEProfile
 
202
(
 
203
  NSSCryptoContext *cc,
 
204
  nssSMIMEProfile *profile
 
205
);
 
206
 
 
207
NSS_EXTERN nssSMIMEProfile *
 
208
nssCryptoContext_FindSMIMEProfileForCertificate
 
209
(
 
210
  NSSCryptoContext *cc,
 
211
  NSSCertificate *cert
 
212
);
 
213
 
 
214
NSS_EXTERN NSSTrust *
 
215
nssTrust_AddRef
 
216
(
 
217
  NSSTrust *trust
 
218
);
 
219
 
 
220
NSS_EXTERN PRStatus
 
221
nssTrust_Destroy
 
222
(
 
223
  NSSTrust *trust
 
224
);
 
225
 
 
226
NSS_EXTERN nssSMIMEProfile *
 
227
nssSMIMEProfile_AddRef
 
228
(
 
229
  nssSMIMEProfile *profile
 
230
);
 
231
 
 
232
NSS_EXTERN PRStatus
 
233
nssSMIMEProfile_Destroy
 
234
(
 
235
  nssSMIMEProfile *profile
 
236
);
 
237
 
 
238
NSS_EXTERN nssSMIMEProfile *
 
239
nssSMIMEProfile_Create
 
240
(
 
241
  NSSCertificate *cert,
 
242
  NSSItem *profileTime,
 
243
  NSSItem *profileData
 
244
);
 
245
 
 
246
PR_END_EXTERN_C
 
247
 
 
248
#endif /* PKI_H */