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 * pkix_pl_aiamgr.h | 5 * pkix_pl_aiamgr.h |
6 * | 6 * |
7 * AIAMgr Object Definitions | 7 * AIAMgr Object Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _PKIX_PL_AIAMGR_H | 11 #ifndef _PKIX_PL_AIAMGR_H |
12 #define _PKIX_PL_AIAMGR_H | 12 #define _PKIX_PL_AIAMGR_H |
13 | 13 |
14 #include "pkix_pl_common.h" | 14 #include "pkix_pl_common.h" |
15 | 15 |
16 #ifdef __cplusplus | 16 #ifdef __cplusplus |
17 extern "C" { | 17 extern "C" { |
18 #endif | 18 #endif |
19 | 19 |
20 struct PKIX_PL_AIAMgrStruct { | 20 struct PKIX_PL_AIAMgrStruct { |
21 /* pointer to cert cache */ | 21 /* pointer to cert cache */ |
22 /* pointer to crl cache */ | 22 /* pointer to crl cache */ |
23 PKIX_UInt32 method; | 23 PKIX_UInt32 method; |
24 PKIX_UInt32 aiaIndex; | 24 PKIX_UInt32 aiaIndex; |
25 PKIX_UInt32 numAias; | 25 PKIX_UInt32 numAias; |
26 PKIX_List *aia; | 26 PKIX_List *aia; |
27 PKIX_PL_GeneralName *location; | 27 PKIX_PL_GeneralName *location; |
28 PKIX_List *results; | 28 PKIX_List *results; |
29 union { | 29 union { |
| 30 #ifndef NSS_PKIX_NO_LDAP |
30 PKIX_PL_LdapClient *ldapClient; | 31 PKIX_PL_LdapClient *ldapClient; |
| 32 #endif |
31 struct { | 33 struct { |
32 const SEC_HttpClientFcn *httpClient; | 34 const SEC_HttpClientFcn *httpClient; |
33 SEC_HTTP_SERVER_SESSION serverSession; | 35 SEC_HTTP_SERVER_SESSION serverSession; |
34 SEC_HTTP_REQUEST_SESSION requestSession; | 36 SEC_HTTP_REQUEST_SESSION requestSession; |
35 char *path; | 37 char *path; |
36 } hdata; | 38 } hdata; |
37 } client; | 39 } client; |
38 }; | 40 }; |
39 | 41 |
40 /* see source file for function documentation */ | 42 /* see source file for function documentation */ |
41 | 43 |
42 PKIX_Error *pkix_pl_AIAMgr_RegisterSelf(void *plContext); | 44 PKIX_Error *pkix_pl_AIAMgr_RegisterSelf(void *plContext); |
43 | 45 |
| 46 #ifndef NSS_PKIX_NO_LDAP |
44 PKIX_Error *PKIX_PL_LdapClient_InitiateRequest( | 47 PKIX_Error *PKIX_PL_LdapClient_InitiateRequest( |
45 PKIX_PL_LdapClient *client, | 48 PKIX_PL_LdapClient *client, |
46 LDAPRequestParams *requestParams, | 49 LDAPRequestParams *requestParams, |
47 void **pPollDesc, | 50 void **pPollDesc, |
48 PKIX_List **pResponse, | 51 PKIX_List **pResponse, |
49 void *plContext); | 52 void *plContext); |
50 | 53 |
51 PKIX_Error *PKIX_PL_LdapClient_ResumeRequest( | 54 PKIX_Error *PKIX_PL_LdapClient_ResumeRequest( |
52 PKIX_PL_LdapClient *client, | 55 PKIX_PL_LdapClient *client, |
53 void **pPollDesc, | 56 void **pPollDesc, |
54 PKIX_List **pResponse, | 57 PKIX_List **pResponse, |
55 void *plContext); | 58 void *plContext); |
| 59 #endif /* !NSS_PKIX_NO_LDAP */ |
56 | 60 |
57 #ifdef __cplusplus | 61 #ifdef __cplusplus |
58 } | 62 } |
59 #endif | 63 #endif |
60 | 64 |
61 #endif /* _PKIX_PL_AIAMGR_H */ | 65 #endif /* _PKIX_PL_AIAMGR_H */ |
OLD | NEW |