s4:heimdal: import lorikeet-heimdal-201009250123 (commit 42cabfb5b683dbcb97d583c397b8...
[samba.git] / source4 / heimdal / lib / hcrypto / engine.h
index d3a1479ce234f68de48e11116bb00f8b964d0fda..7fd8f3e1e5a2bbde889c28d4293834ca7a373db0 100644 (file)
@@ -54,6 +54,8 @@
 #define ENGINE_set_id hc_ENGINE_set_id
 #define ENGINE_set_name hc_ENGINE_set_name
 #define ENGINE_set_destroy_function hc_ENGINE_set_destroy_function
+#define ENGINE_new hc_ENGINE_new
+#define ENGINE_free hc_ENGINE_free
 #define ENGINE_up_ref hc_ENGINE_up_ref
 #define ENGINE_get_default_DH hc_ENGINE_get_default_DH
 #define ENGINE_get_default_RSA hc_ENGINE_get_default_RSA
 
 typedef struct hc_engine ENGINE;
 
+#define NID_md2                        0
+#define NID_md4                        1
+#define NID_md5                        2
+#define NID_sha1               4
+#define NID_sha256             5
+
+/*
+ *
+ */
+
 #include <hcrypto/rsa.h>
 #include <hcrypto/dsa.h>
 #include <hcrypto/dh.h>
@@ -76,6 +88,9 @@ typedef struct hc_engine ENGINE;
 typedef int (*openssl_bind_engine)(ENGINE *, const char *, const void *);
 typedef unsigned long (*openssl_v_check)(unsigned long);
 
+ENGINE *
+       ENGINE_new(void);
+int ENGINE_free(ENGINE *);
 void   ENGINE_add_conf_module(void);
 void   ENGINE_load_builtin_engines(void);
 ENGINE *ENGINE_by_id(const char *);