decryptcore: load the nls data

Load the nls data before the openssl will try to do it in the
capability mode.
On my machine the sa_ossl_private_decrypt is trying to do that.

MFC after:	2 weeks
This commit is contained in:
Mariusz Zaborski 2020-04-11 17:30:33 +00:00
parent d0c51fc4ac
commit eec362ef58

View File

@ -170,6 +170,7 @@ decrypt(int ofd, const char *privkeyfile, const char *keyfile,
goto failed;
}
caph_cache_catpages();
if (caph_enter() < 0) {
pjdlog_errno(LOG_ERR, "Unable to enter capability mode");
goto failed;