提交 3988bb34 编写于 作者: R Richard Levitte

gcc warns when certain values of an enumeration aren't taken care of,

unless there's a default clause.
上级 9e78e6c3
...@@ -620,6 +620,8 @@ static ENGINE *engine_get_default_type(ENGINE_TYPE t) ...@@ -620,6 +620,8 @@ static ENGINE *engine_get_default_type(ENGINE_TYPE t)
ret = engine_def_bn_mod_exp; break; ret = engine_def_bn_mod_exp; break;
case ENGINE_TYPE_BN_MOD_EXP_CRT: case ENGINE_TYPE_BN_MOD_EXP_CRT:
ret = engine_def_bn_mod_exp_crt; break; ret = engine_def_bn_mod_exp_crt; break;
default:
break;
} }
/* Unforunately we can't do this work outside the lock with a /* Unforunately we can't do this work outside the lock with a
* call to ENGINE_init() because that would leave a race * 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) ...@@ -719,6 +721,8 @@ static int engine_set_default_type(ENGINE_TYPE t, ENGINE *e)
case ENGINE_TYPE_BN_MOD_EXP_CRT: case ENGINE_TYPE_BN_MOD_EXP_CRT:
old = engine_def_bn_mod_exp_crt; old = engine_def_bn_mod_exp_crt;
engine_def_bn_mod_exp_crt = e; break; engine_def_bn_mod_exp_crt = e; break;
default:
break;
} }
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
/* If we've replaced a previous value, then we need to remove the /* If we've replaced a previous value, then we need to remove the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册