Clear out ENGINE flags when initializing
We don't need our engine to be copied when initialized with ENGINE_by_id, so just make sure our flags are cleared when we initialize. Change-Id: Ie75fad37c2f78a769c425889c1d0661b468cd0c7
This commit is contained in:
parent
aa8467e59b
commit
938a991106
1 changed files with 1 additions and 0 deletions
|
@ -281,6 +281,7 @@ static int keystore_engine_setup(ENGINE* e) {
|
||||||
|| !ENGINE_set_name(e, KEYSTORE_ENGINE_NAME)
|
|| !ENGINE_set_name(e, KEYSTORE_ENGINE_NAME)
|
||||||
|| !ENGINE_set_load_privkey_function(e, keystore_loadkey)
|
|| !ENGINE_set_load_privkey_function(e, keystore_loadkey)
|
||||||
|| !ENGINE_set_load_pubkey_function(e, keystore_loadkey)
|
|| !ENGINE_set_load_pubkey_function(e, keystore_loadkey)
|
||||||
|
|| !ENGINE_set_flags(e, 0)
|
||||||
|| !ENGINE_set_cmd_defns(e, keystore_cmd_defns)) {
|
|| !ENGINE_set_cmd_defns(e, keystore_cmd_defns)) {
|
||||||
ALOGE("Could not set up keystore engine");
|
ALOGE("Could not set up keystore engine");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue