aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-04-26 15:53:42 +0000
committerRichard Levitte <levitte@openssl.org>2001-04-26 15:53:42 +0000
commit3988bb34aa77acc034ebf93fd70987f42b45f636 (patch)
treee7df11da32134fa0473dbebe74da45267d2c45c6
parent9e78e6c3f842f9a7808c22bda177e99dd66fed12 (diff)
downloadopenssl-3988bb34aa77acc034ebf93fd70987f42b45f636.tar.gz
gcc warns when certain values of an enumeration aren't taken care of,
unless there's a default clause.
-rw-r--r--crypto/engine/engine_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/engine/engine_lib.c b/crypto/engine/engine_lib.c
index ef94227e04..5925a0bc65 100644
--- a/crypto/engine/engine_lib.c
+++ b/crypto/engine/engine_lib.c
@@ -620,6 +620,8 @@ static ENGINE *engine_get_default_type(ENGINE_TYPE t)
ret = engine_def_bn_mod_exp; break;
case ENGINE_TYPE_BN_MOD_EXP_CRT:
ret = engine_def_bn_mod_exp_crt; break;
+ default:
+ break;
}
/* Unforunately we can't do this work outside the lock with a
* call to ENGINE_init() because that would leave a race
@@ -719,6 +721,8 @@ static int engine_set_default_type(ENGINE_TYPE t, ENGINE *e)
case ENGINE_TYPE_BN_MOD_EXP_CRT:
old = engine_def_bn_mod_exp_crt;
engine_def_bn_mod_exp_crt = e; break;
+ default:
+ break;
}
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
/* If we've replaced a previous value, then we need to remove the