OLD | NEW |
| (Empty) |
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 | |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 /* | |
5 * pkix_pl_httpcertstore.h | |
6 * | |
7 * HTTPCertstore Object Type Definition | |
8 * | |
9 */ | |
10 | |
11 #ifndef _PKIX_PL_HTTPCERTSTORE_H | |
12 #define _PKIX_PL_HTTPCERTSTORE_H | |
13 | |
14 #include "pkix_pl_common.h" | |
15 | |
16 #ifdef __cplusplus | |
17 extern "C" { | |
18 #endif | |
19 | |
20 struct PKIX_PL_HttpCertStoreContextStruct { | |
21 const SEC_HttpClientFcn *client; | |
22 SEC_HTTP_SERVER_SESSION serverSession; | |
23 SEC_HTTP_REQUEST_SESSION requestSession; | |
24 char *path; | |
25 }; | |
26 | |
27 /* see source file for function documentation */ | |
28 | |
29 PKIX_Error *pkix_pl_HttpCertStoreContext_RegisterSelf(void *plContext); | |
30 | |
31 void pkix_pl_HttpCertStore_Shutdown(void *plContext); | |
32 | |
33 PKIX_Error * | |
34 pkix_pl_HttpCertStore_CreateWithAsciiName( | |
35 PKIX_PL_HttpClient *client, | |
36 char *locationAscii, | |
37 PKIX_CertStore **pCertStore, | |
38 void *plContext); | |
39 | |
40 PKIX_Error * | |
41 pkix_HttpCertStore_FindSocketConnection( | |
42 PRIntervalTime timeout, | |
43 char *hostname, | |
44 PRUint16 portnum, | |
45 PRErrorCode *pStatus, | |
46 PKIX_PL_Socket **pSocket, | |
47 void *plContext); | |
48 | |
49 PKIX_Error * | |
50 pkix_pl_HttpCertStore_ProcessCertResponse( | |
51 PRUint16 responseCode, | |
52 const char *responseContentType, | |
53 const char *responseData, | |
54 PRUint32 responseDataLen, | |
55 PKIX_List **pCertList, | |
56 void *plContext); | |
57 | |
58 #ifdef __cplusplus | |
59 } | |
60 #endif | |
61 | |
62 #endif /* _PKIX_PL_HTTPCERTSTORE_H */ | |
OLD | NEW |