Constify DH-related code.
[openssl.git] / crypto / engine / engine_list.c
index 799ea13b059ab790118b9baf1bbcfe2915b3375e..8be1cb6d405c6a99a8dc5abc55b5a5a0b7e6c6e7 100644 (file)
@@ -430,7 +430,7 @@ int ENGINE_set_name(ENGINE *e, const char *name)
        return 1;
        }
 
-int ENGINE_set_RSA(ENGINE *e, RSA_METHOD *rsa_meth)
+int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth)
        {
        if((e == NULL) || (rsa_meth == NULL))
                {
@@ -442,7 +442,7 @@ int ENGINE_set_RSA(ENGINE *e, RSA_METHOD *rsa_meth)
        return 1;
        }
 
-int ENGINE_set_DSA(ENGINE *e, DSA_METHOD *dsa_meth)
+int ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth)
        {
        if((e == NULL) || (dsa_meth == NULL))
                {
@@ -454,7 +454,7 @@ int ENGINE_set_DSA(ENGINE *e, DSA_METHOD *dsa_meth)
        return 1;
        }
 
-int ENGINE_set_DH(ENGINE *e, DH_METHOD *dh_meth)
+int ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth)
        {
        if((e == NULL) || (dh_meth == NULL))
                {
@@ -560,7 +560,7 @@ const char *ENGINE_get_name(ENGINE *e)
        return e->name;
        }
 
-RSA_METHOD *ENGINE_get_RSA(ENGINE *e)
+const RSA_METHOD *ENGINE_get_RSA(ENGINE *e)
        {
        if(e == NULL)
                {
@@ -571,7 +571,7 @@ RSA_METHOD *ENGINE_get_RSA(ENGINE *e)
        return e->rsa_meth;
        }
 
-DSA_METHOD *ENGINE_get_DSA(ENGINE *e)
+const DSA_METHOD *ENGINE_get_DSA(ENGINE *e)
        {
        if(e == NULL)
                {
@@ -582,7 +582,7 @@ DSA_METHOD *ENGINE_get_DSA(ENGINE *e)
        return e->dsa_meth;
        }
 
-DH_METHOD *ENGINE_get_DH(ENGINE *e)
+const DH_METHOD *ENGINE_get_DH(ENGINE *e)
        {
        if(e == NULL)
                {