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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359807

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;