Avoid compiler warnings in hw_ubsec.c: unused static
[openssl.git] / crypto / engine / engine.h
index 826bdff76a34ddcc874d3424b13ae19aeb827f48..b8d6e87ab3d22c359c8fe17c316339a4c1726214 100644 (file)
@@ -89,6 +89,9 @@ extern "C" {
  * the error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED. */
 #define ENGINE_CTRL_SET_LOGSTREAM              1
 #define ENGINE_CTRL_SET_PASSWORD_CALLBACK      2
+#define ENGINE_CTRL_HUP                                3 /* Close and reinitialise any
+                                                    handles/connections etc. */
+
 /* Flags specific to the nCipher "chil" engine */
 #define ENGINE_CTRL_CHIL_SET_FORKCHECK         100
        /* Depending on the value of the (long)i argument, this sets or
@@ -156,6 +159,7 @@ void ENGINE_load_cswift(void);
 void ENGINE_load_chil(void);
 void ENGINE_load_atalla(void);
 void ENGINE_load_nuron(void);
+void ENGINE_load_ubsec(void);
 void ENGINE_load_builtin_engines(void);
 
 /* These functions are useful for manufacturing new ENGINE
@@ -180,7 +184,7 @@ int ENGINE_set_id(ENGINE *e, const char *id);
 int ENGINE_set_name(ENGINE *e, const char *name);
 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth);
 int ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth);
-int ENGINE_set_DH(ENGINE *e, DH_METHOD *dh_meth);
+int ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth);
 int ENGINE_set_RAND(ENGINE *e, RAND_METHOD *rand_meth);
 int ENGINE_set_BN_mod_exp(ENGINE *e, BN_MOD_EXP bn_mod_exp);
 int ENGINE_set_BN_mod_exp_crt(ENGINE *e, BN_MOD_EXP_CRT bn_mod_exp_crt);
@@ -197,7 +201,7 @@ const char *ENGINE_get_id(ENGINE *e);
 const char *ENGINE_get_name(ENGINE *e);
 const RSA_METHOD *ENGINE_get_RSA(ENGINE *e);
 const DSA_METHOD *ENGINE_get_DSA(ENGINE *e);
-DH_METHOD *ENGINE_get_DH(ENGINE *e);
+const DH_METHOD *ENGINE_get_DH(ENGINE *e);
 RAND_METHOD *ENGINE_get_RAND(ENGINE *e);
 BN_MOD_EXP ENGINE_get_BN_mod_exp(ENGINE *e);
 BN_MOD_EXP_CRT ENGINE_get_BN_mod_exp_crt(ENGINE *e);
@@ -366,6 +370,13 @@ void ERR_load_ENGINE_strings(void);
 #define ENGINE_F_NURON_FINISH                           157
 #define ENGINE_F_NURON_INIT                             156
 #define ENGINE_F_NURON_MOD_EXP                          158
+#define ENGINE_F_UBSEC_DSA_SIGN                                 163
+#define ENGINE_F_UBSEC_DSA_VERIFY                       164
+#define ENGINE_F_UBSEC_FINISH                           165
+#define ENGINE_F_UBSEC_INIT                             166
+#define ENGINE_F_UBSEC_MOD_EXP                          167
+#define ENGINE_F_UBSEC_RSA_MOD_EXP                      168
+#define ENGINE_F_UBSEC_RSA_MOD_EXP_CRT                  169
 
 /* Reason codes. */
 #define ENGINE_R_ALREADY_LOADED                                 100