diff options
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/dgst.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/dgst.c b/src/usr.bin/openssl/dgst.c index 94d98ac6a4..b4632eefa3 100644 --- a/src/usr.bin/openssl/dgst.c +++ b/src/usr.bin/openssl/dgst.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dgst.c,v 1.6 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: dgst.c,v 1.7 2015/10/10 22:28:51 doug Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -123,6 +123,11 @@ dgst_main(int argc, char **argv) | |||
| 123 | char *mac_name = NULL; | 123 | char *mac_name = NULL; |
| 124 | STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL; | 124 | STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL; |
| 125 | 125 | ||
| 126 | if (single_execution) { | ||
| 127 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | ||
| 128 | perror("pledge"); | ||
| 129 | } | ||
| 130 | |||
| 126 | if ((buf = malloc(BUFSIZE)) == NULL) { | 131 | if ((buf = malloc(BUFSIZE)) == NULL) { |
| 127 | BIO_printf(bio_err, "out of memory\n"); | 132 | BIO_printf(bio_err, "out of memory\n"); |
| 128 | goto end; | 133 | goto end; |
