| OLD | NEW |
| 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 * This file defines functions associated with CertStore types. | 5 * This file defines functions associated with CertStore types. |
| 6 * | 6 * |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef _PKIX_SAMPLEMODULES_H | 10 #ifndef _PKIX_SAMPLEMODULES_H |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 * RETURNS: | 110 * RETURNS: |
| 111 * Returns NULL if the function succeeds. | 111 * Returns NULL if the function succeeds. |
| 112 * Returns a CertStore Error if the function fails in a non-fatal way. | 112 * Returns a CertStore Error if the function fails in a non-fatal way. |
| 113 * Returns a Fatal Error if the function fails in an unrecoverable way. | 113 * Returns a Fatal Error if the function fails in an unrecoverable way. |
| 114 */ | 114 */ |
| 115 PKIX_Error * | 115 PKIX_Error * |
| 116 PKIX_PL_Pk11CertStore_Create( | 116 PKIX_PL_Pk11CertStore_Create( |
| 117 PKIX_CertStore **pPk11CertStore, | 117 PKIX_CertStore **pPk11CertStore, |
| 118 void *plContext); | 118 void *plContext); |
| 119 | 119 |
| 120 #ifndef NSS_PKIX_NO_LDAP |
| 120 /* PKIX_PL_LdapCertStore | 121 /* PKIX_PL_LdapCertStore |
| 121 * | 122 * |
| 122 * A PKIX_PL_LdapCertStore retrieves certificates and CRLs from an LDAP server | 123 * A PKIX_PL_LdapCertStore retrieves certificates and CRLs from an LDAP server |
| 123 * over a socket connection. It used the LDAP protocol as described in RFC1777. | 124 * over a socket connection. It used the LDAP protocol as described in RFC1777. |
| 124 * | 125 * |
| 125 * Once the caller has created the LdapCertStore object, the caller can call | 126 * Once the caller has created the LdapCertStore object, the caller can call |
| 126 * pkix_pl_LdapCertStore_GetCert or pkix_pl_LdapCertStore_GetCert to obtain | 127 * pkix_pl_LdapCertStore_GetCert or pkix_pl_LdapCertStore_GetCert to obtain |
| 127 * a List of PKIX_PL_Certs or PKIX_PL_CRL objects, respectively. | 128 * a List of PKIX_PL_Certs or PKIX_PL_CRL objects, respectively. |
| 128 */ | 129 */ |
| 129 | 130 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 * RETURNS: | 243 * RETURNS: |
| 243 * Returns NULL if the function succeeds. | 244 * Returns NULL if the function succeeds. |
| 244 * Returns a CertStore Error if the function fails in a non-fatal way. | 245 * Returns a CertStore Error if the function fails in a non-fatal way. |
| 245 * Returns a Fatal Error if the function fails in an unrecoverable way. | 246 * Returns a Fatal Error if the function fails in an unrecoverable way. |
| 246 */ | 247 */ |
| 247 PKIX_Error * | 248 PKIX_Error * |
| 248 PKIX_PL_LdapCertStore_Create( | 249 PKIX_PL_LdapCertStore_Create( |
| 249 PKIX_PL_LdapClient *client, | 250 PKIX_PL_LdapClient *client, |
| 250 PKIX_CertStore **pCertStore, | 251 PKIX_CertStore **pCertStore, |
| 251 void *plContext); | 252 void *plContext); |
| 253 #endif /* !NSS_PKIX_NO_LDAP */ |
| 252 | 254 |
| 253 /* PKIX_PL_NssContext | 255 /* PKIX_PL_NssContext |
| 254 * | 256 * |
| 255 * A PKIX_PL_NssContext provides an example showing how the "plContext" | 257 * A PKIX_PL_NssContext provides an example showing how the "plContext" |
| 256 * argument, that is part of every libpkix function call, can be used. | 258 * argument, that is part of every libpkix function call, can be used. |
| 257 * The "plContext" is the Portability Layer Context, which can be used | 259 * The "plContext" is the Portability Layer Context, which can be used |
| 258 * to communicate layer-specific information from the application to the | 260 * to communicate layer-specific information from the application to the |
| 259 * underlying Portability Layer (while bypassing the Portable Code, which | 261 * underlying Portability Layer (while bypassing the Portable Code, which |
| 260 * blindly passes the plContext on to every function call). | 262 * blindly passes the plContext on to every function call). |
| 261 * | 263 * |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 * Returns a Fatal Error if the function fails in an unrecoverable way. | 411 * Returns a Fatal Error if the function fails in an unrecoverable way. |
| 410 */ | 412 */ |
| 411 PKIX_Error * | 413 PKIX_Error * |
| 412 PKIX_PL_NssContext_SetBadDerCrlReloadDelay(PKIX_UInt32 delaySeconds, | 414 PKIX_PL_NssContext_SetBadDerCrlReloadDelay(PKIX_UInt32 delaySeconds, |
| 413 PKIX_PL_NssContext *nssContext); | 415 PKIX_PL_NssContext *nssContext); |
| 414 #ifdef __cplusplus | 416 #ifdef __cplusplus |
| 415 } | 417 } |
| 416 #endif | 418 #endif |
| 417 | 419 |
| 418 #endif /* _PKIX_SAMPLEMODULES_H */ | 420 #endif /* _PKIX_SAMPLEMODULES_H */ |
| OLD | NEW |