aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2020-04-11 17:30:33 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2020-04-11 17:30:33 +0000
commiteec362ef5816b61b79a98d28830c5ff1d757b3ae (patch)
tree1aa030de49f8a03d19690bd4aabae717ac425f71
parentd0c51fc4ac5e4f22a36f8c8e9e69c48400466100 (diff)
downloadsrc-eec362ef5816b61b79a98d28830c5ff1d757b3ae.tar.gz
src-eec362ef5816b61b79a98d28830c5ff1d757b3ae.zip
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
Notes
Notes: svn path=/head/; revision=359807
-rw-r--r--sbin/decryptcore/decryptcore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/decryptcore/decryptcore.c b/sbin/decryptcore/decryptcore.c
index 6a6c362011fb..7fbe237487c5 100644
--- a/sbin/decryptcore/decryptcore.c
+++ b/sbin/decryptcore/decryptcore.c
@@ -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;