diff options
Diffstat (limited to 'src/usr.bin/openssl/gendh.c')
-rw-r--r-- | src/usr.bin/openssl/gendh.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/gendh.c b/src/usr.bin/openssl/gendh.c index 208906e24c..ceea237be1 100644 --- a/src/usr.bin/openssl/gendh.c +++ b/src/usr.bin/openssl/gendh.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gendh.c,v 1.5 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: gendh.c,v 1.6 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 | * |
@@ -134,6 +134,11 @@ gendh_main(int argc, char **argv) | |||
134 | BIO *out = NULL; | 134 | BIO *out = NULL; |
135 | char *strbits = NULL; | 135 | char *strbits = NULL; |
136 | 136 | ||
137 | if (single_execution) { | ||
138 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | ||
139 | perror("pledge"); | ||
140 | } | ||
141 | |||
137 | BN_GENCB_set(&cb, dh_cb, bio_err); | 142 | BN_GENCB_set(&cb, dh_cb, bio_err); |
138 | 143 | ||
139 | memset(&gendh_config, 0, sizeof(gendh_config)); | 144 | memset(&gendh_config, 0, sizeof(gendh_config)); |