diff options
author | Richard Levitte <levitte@openssl.org> | 2000-11-07 13:54:39 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-11-07 13:54:39 +0000 |
commit | a4aba800d9e0f81617d2f3d95d4fa99a4487bab2 (patch) | |
tree | eac98957868e4dc4af45182a91a7144c2ea1dc0b /crypto/engine | |
parent | 669cefdd3542e1dce8effeb8d898344c59608bfc (diff) |
Constify DSA-related code.
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/engine.h | 4 | ||||
-rw-r--r-- | crypto/engine/engine_int.h | 2 | ||||
-rw-r--r-- | crypto/engine/engine_list.c | 4 | ||||
-rw-r--r-- | crypto/engine/hw_atalla.c | 4 | ||||
-rw-r--r-- | crypto/engine/hw_cswift.c | 2 | ||||
-rw-r--r-- | crypto/engine/hw_ncipher.c | 2 | ||||
-rw-r--r-- | crypto/engine/hw_nuron.c | 4 |
7 files changed, 11 insertions, 11 deletions
diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index e695e4543b..826bdff76a 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -179,7 +179,7 @@ int ENGINE_free(ENGINE *e); 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, DSA_METHOD *dsa_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_RAND(ENGINE *e, RAND_METHOD *rand_meth); int ENGINE_set_BN_mod_exp(ENGINE *e, BN_MOD_EXP bn_mod_exp); @@ -196,7 +196,7 @@ int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); const char *ENGINE_get_id(ENGINE *e); const char *ENGINE_get_name(ENGINE *e); const RSA_METHOD *ENGINE_get_RSA(ENGINE *e); -DSA_METHOD *ENGINE_get_DSA(ENGINE *e); +const DSA_METHOD *ENGINE_get_DSA(ENGINE *e); DH_METHOD *ENGINE_get_DH(ENGINE *e); RAND_METHOD *ENGINE_get_RAND(ENGINE *e); BN_MOD_EXP ENGINE_get_BN_mod_exp(ENGINE *e); diff --git a/crypto/engine/engine_int.h b/crypto/engine/engine_int.h index 6df448e0f3..547893fdd9 100644 --- a/crypto/engine/engine_int.h +++ b/crypto/engine/engine_int.h @@ -83,7 +83,7 @@ struct engine_st const char *id; const char *name; const RSA_METHOD *rsa_meth; - DSA_METHOD *dsa_meth; + const DSA_METHOD *dsa_meth; DH_METHOD *dh_meth; RAND_METHOD *rand_meth; BN_MOD_EXP bn_mod_exp; diff --git a/crypto/engine/engine_list.c b/crypto/engine/engine_list.c index 09b261c489..67bb7d03db 100644 --- a/crypto/engine/engine_list.c +++ b/crypto/engine/engine_list.c @@ -442,7 +442,7 @@ int ENGINE_set_RSA(ENGINE *e, const 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)) { @@ -571,7 +571,7 @@ const 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) { diff --git a/crypto/engine/hw_atalla.c b/crypto/engine/hw_atalla.c index 30e5634c71..b19639caab 100644 --- a/crypto/engine/hw_atalla.c +++ b/crypto/engine/hw_atalla.c @@ -170,8 +170,8 @@ static ENGINE engine_atalla = * (indeed - the lock will already be held by our caller!!!) */ ENGINE *ENGINE_atalla() { - RSA_METHOD *meth1; - DSA_METHOD *meth2; + const RSA_METHOD *meth1; + const DSA_METHOD *meth2; DH_METHOD *meth3; /* We know that the "PKCS1_SSLeay()" functions hook properly diff --git a/crypto/engine/hw_cswift.c b/crypto/engine/hw_cswift.c index 85cf1036c7..cb6beefd65 100644 --- a/crypto/engine/hw_cswift.c +++ b/crypto/engine/hw_cswift.c @@ -182,7 +182,7 @@ static ENGINE engine_cswift = * (indeed - the lock will already be held by our caller!!!) */ ENGINE *ENGINE_cswift() { - RSA_METHOD *meth1; + const RSA_METHOD *meth1; DH_METHOD *meth2; /* We know that the "PKCS1_SSLeay()" functions hook properly diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index 3e4ec44e86..bb7e82c9fd 100644 --- a/crypto/engine/hw_ncipher.c +++ b/crypto/engine/hw_ncipher.c @@ -291,7 +291,7 @@ static HWCryptoHook_InitInfo hwcrhk_globals = { * (indeed - the lock will already be held by our caller!!!) */ ENGINE *ENGINE_ncipher() { - RSA_METHOD *meth1; + const RSA_METHOD *meth1; DH_METHOD *meth2; /* We know that the "PKCS1_SSLeay()" functions hook properly diff --git a/crypto/engine/hw_nuron.c b/crypto/engine/hw_nuron.c index f09f137a4c..2fd394f754 100644 --- a/crypto/engine/hw_nuron.c +++ b/crypto/engine/hw_nuron.c @@ -250,8 +250,8 @@ static ENGINE engine_nuron = * (indeed - the lock will already be held by our caller!!!) */ ENGINE *ENGINE_nuron() { - RSA_METHOD *meth1; - DSA_METHOD *meth2; + const RSA_METHOD *meth1; + const DSA_METHOD *meth2; DH_METHOD *meth3; /* We know that the "PKCS1_SSLeay()" functions hook properly |