summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/certhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/certhash.c')
-rw-r--r--src/usr.bin/openssl/certhash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c
index 77e641cef5..bd0ac54ecf 100644
--- a/src/usr.bin/openssl/certhash.c
+++ b/src/usr.bin/openssl/certhash.c
@@ -649,6 +649,11 @@ certhash_main(int argc, char **argv)
649 int argsused; 649 int argsused;
650 int i, cwdfd, ret = 0; 650 int i, cwdfd, ret = 0;
651 651
652 if (single_execution) {
653 if (pledge("stdio rpath wpath cpath", NULL) == -1)
654 perror("pledge");
655 }
656
652 memset(&certhash_config, 0, sizeof(certhash_config)); 657 memset(&certhash_config, 0, sizeof(certhash_config));
653 658
654 if (options_parse(argc, argv, certhash_options, NULL, &argsused) != 0) { 659 if (options_parse(argc, argv, certhash_options, NULL, &argsused) != 0) {