]> git.saurik.com Git - apple/security.git/blobdiff - SecurityTests/clxutils/crlTool/crlNetwork.h
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / crlTool / crlNetwork.h
diff --git a/SecurityTests/clxutils/crlTool/crlNetwork.h b/SecurityTests/clxutils/crlTool/crlNetwork.h
new file mode 100644 (file)
index 0000000..592ec5c
--- /dev/null
@@ -0,0 +1,30 @@
+/* 
+ * crlNetwork.h - Network support for crlTool
+ */
+#ifndef        _CRL_NETWORK_H_
+#define _CRL_NETWORK_H_
+
+#include <Security/cssmtype.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Fetch cert or CRL from net, we figure out the schema */
+
+typedef enum {
+       LT_Crl = 1,
+       LT_Cert
+} LF_Type;
+
+CSSM_RETURN crlNetFetch(
+       const CSSM_DATA         *url,
+       LF_Type                         lfType,
+       CSSM_DATA                       *fetched);      // mallocd and RETURNED
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _CRL_NETWORK_H_ */