security/nss/lib/pki/pki.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef PKI_H
michael@0 6 #define PKI_H
michael@0 7
michael@0 8 #ifndef NSSDEVT_H
michael@0 9 #include "nssdevt.h"
michael@0 10 #endif /* NSSDEVT_H */
michael@0 11
michael@0 12 #ifndef NSSPKI_H
michael@0 13 #include "nsspki.h"
michael@0 14 #endif /* NSSPKI_H */
michael@0 15
michael@0 16 #ifndef PKIT_H
michael@0 17 #include "pkit.h"
michael@0 18 #endif /* PKIT_H */
michael@0 19
michael@0 20 PR_BEGIN_EXTERN_C
michael@0 21
michael@0 22 NSS_EXTERN NSSCallback *
michael@0 23 nssTrustDomain_GetDefaultCallback
michael@0 24 (
michael@0 25 NSSTrustDomain *td,
michael@0 26 PRStatus *statusOpt
michael@0 27 );
michael@0 28
michael@0 29 NSS_EXTERN NSSCertificate **
michael@0 30 nssTrustDomain_FindCertificatesBySubject
michael@0 31 (
michael@0 32 NSSTrustDomain *td,
michael@0 33 NSSDER *subject,
michael@0 34 NSSCertificate *rvOpt[],
michael@0 35 PRUint32 maximumOpt,
michael@0 36 NSSArena *arenaOpt
michael@0 37 );
michael@0 38
michael@0 39 NSS_EXTERN NSSTrust *
michael@0 40 nssTrustDomain_FindTrustForCertificate
michael@0 41 (
michael@0 42 NSSTrustDomain *td,
michael@0 43 NSSCertificate *c
michael@0 44 );
michael@0 45
michael@0 46 NSS_EXTERN NSSCertificate *
michael@0 47 nssCertificate_AddRef
michael@0 48 (
michael@0 49 NSSCertificate *c
michael@0 50 );
michael@0 51
michael@0 52 NSS_EXTERN PRStatus
michael@0 53 nssCertificate_Destroy
michael@0 54 (
michael@0 55 NSSCertificate *c
michael@0 56 );
michael@0 57
michael@0 58 NSS_EXTERN NSSDER *
michael@0 59 nssCertificate_GetEncoding
michael@0 60 (
michael@0 61 NSSCertificate *c
michael@0 62 );
michael@0 63
michael@0 64 NSS_EXTERN NSSDER *
michael@0 65 nssCertificate_GetIssuer
michael@0 66 (
michael@0 67 NSSCertificate *c
michael@0 68 );
michael@0 69
michael@0 70 NSS_EXTERN NSSDER *
michael@0 71 nssCertificate_GetSerialNumber
michael@0 72 (
michael@0 73 NSSCertificate *c
michael@0 74 );
michael@0 75
michael@0 76 NSS_EXTERN NSSDER *
michael@0 77 nssCertificate_GetSubject
michael@0 78 (
michael@0 79 NSSCertificate *c
michael@0 80 );
michael@0 81
michael@0 82 /* Returns a copy, Caller must free using nss_ZFreeIf */
michael@0 83 NSS_EXTERN NSSUTF8 *
michael@0 84 nssCertificate_GetNickname
michael@0 85 (
michael@0 86 NSSCertificate *c,
michael@0 87 NSSToken *tokenOpt
michael@0 88 );
michael@0 89
michael@0 90 NSS_EXTERN NSSASCII7 *
michael@0 91 nssCertificate_GetEmailAddress
michael@0 92 (
michael@0 93 NSSCertificate *c
michael@0 94 );
michael@0 95
michael@0 96 NSS_EXTERN PRBool
michael@0 97 nssCertificate_IssuerAndSerialEqual
michael@0 98 (
michael@0 99 NSSCertificate *c1,
michael@0 100 NSSCertificate *c2
michael@0 101 );
michael@0 102
michael@0 103 NSS_EXTERN NSSPrivateKey *
michael@0 104 nssPrivateKey_AddRef
michael@0 105 (
michael@0 106 NSSPrivateKey *vk
michael@0 107 );
michael@0 108
michael@0 109 NSS_EXTERN PRStatus
michael@0 110 nssPrivateKey_Destroy
michael@0 111 (
michael@0 112 NSSPrivateKey *vk
michael@0 113 );
michael@0 114
michael@0 115 NSS_EXTERN NSSItem *
michael@0 116 nssPrivateKey_GetID
michael@0 117 (
michael@0 118 NSSPrivateKey *vk
michael@0 119 );
michael@0 120
michael@0 121 NSS_EXTERN NSSUTF8 *
michael@0 122 nssPrivateKey_GetNickname
michael@0 123 (
michael@0 124 NSSPrivateKey *vk,
michael@0 125 NSSToken *tokenOpt
michael@0 126 );
michael@0 127
michael@0 128 NSS_EXTERN PRStatus
michael@0 129 nssPublicKey_Destroy
michael@0 130 (
michael@0 131 NSSPublicKey *bk
michael@0 132 );
michael@0 133
michael@0 134 NSS_EXTERN NSSItem *
michael@0 135 nssPublicKey_GetID
michael@0 136 (
michael@0 137 NSSPublicKey *vk
michael@0 138 );
michael@0 139
michael@0 140 NSS_EXTERN NSSCertificate **
michael@0 141 nssCryptoContext_FindCertificatesBySubject
michael@0 142 (
michael@0 143 NSSCryptoContext *cc,
michael@0 144 NSSDER *subject,
michael@0 145 NSSCertificate *rvOpt[],
michael@0 146 PRUint32 maximumOpt, /* 0 for no max */
michael@0 147 NSSArena *arenaOpt
michael@0 148 );
michael@0 149
michael@0 150 /* putting here for now, needs more thought */
michael@0 151 NSS_EXTERN PRStatus
michael@0 152 nssCryptoContext_ImportTrust
michael@0 153 (
michael@0 154 NSSCryptoContext *cc,
michael@0 155 NSSTrust *trust
michael@0 156 );
michael@0 157
michael@0 158 NSS_EXTERN NSSTrust *
michael@0 159 nssCryptoContext_FindTrustForCertificate
michael@0 160 (
michael@0 161 NSSCryptoContext *cc,
michael@0 162 NSSCertificate *cert
michael@0 163 );
michael@0 164
michael@0 165 NSS_EXTERN PRStatus
michael@0 166 nssCryptoContext_ImportSMIMEProfile
michael@0 167 (
michael@0 168 NSSCryptoContext *cc,
michael@0 169 nssSMIMEProfile *profile
michael@0 170 );
michael@0 171
michael@0 172 NSS_EXTERN nssSMIMEProfile *
michael@0 173 nssCryptoContext_FindSMIMEProfileForCertificate
michael@0 174 (
michael@0 175 NSSCryptoContext *cc,
michael@0 176 NSSCertificate *cert
michael@0 177 );
michael@0 178
michael@0 179 NSS_EXTERN NSSTrust *
michael@0 180 nssTrust_AddRef
michael@0 181 (
michael@0 182 NSSTrust *trust
michael@0 183 );
michael@0 184
michael@0 185 NSS_EXTERN PRStatus
michael@0 186 nssTrust_Destroy
michael@0 187 (
michael@0 188 NSSTrust *trust
michael@0 189 );
michael@0 190
michael@0 191 NSS_EXTERN nssSMIMEProfile *
michael@0 192 nssSMIMEProfile_AddRef
michael@0 193 (
michael@0 194 nssSMIMEProfile *profile
michael@0 195 );
michael@0 196
michael@0 197 NSS_EXTERN PRStatus
michael@0 198 nssSMIMEProfile_Destroy
michael@0 199 (
michael@0 200 nssSMIMEProfile *profile
michael@0 201 );
michael@0 202
michael@0 203 NSS_EXTERN nssSMIMEProfile *
michael@0 204 nssSMIMEProfile_Create
michael@0 205 (
michael@0 206 NSSCertificate *cert,
michael@0 207 NSSItem *profileTime,
michael@0 208 NSSItem *profileData
michael@0 209 );
michael@0 210
michael@0 211 PR_END_EXTERN_C
michael@0 212
michael@0 213 #endif /* PKI_H */

mercurial