]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/crlTool/crlNetwork.h
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / crlTool / crlNetwork.h
1 /*
2 * crlNetwork.h - Network support for crlTool
3 */
4
5 #ifndef _CRL_NETWORK_H_
6 #define _CRL_NETWORK_H_
7
8 #include <Security/cssmtype.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /* Fetch cert or CRL from net, we figure out the schema */
15
16 typedef enum {
17 LT_Crl = 1,
18 LT_Cert
19 } LF_Type;
20
21 CSSM_RETURN crlNetFetch(
22 const CSSM_DATA *url,
23 LF_Type lfType,
24 CSSM_DATA *fetched); // mallocd and RETURNED
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif /* _CRL_NETWORK_H_ */