summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/asn1pars.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/asn1pars.c')
-rw-r--r--src/usr.bin/openssl/asn1pars.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/asn1pars.c b/src/usr.bin/openssl/asn1pars.c
index da3bf761ce..2ce9d1a3ba 100644
--- a/src/usr.bin/openssl/asn1pars.c
+++ b/src/usr.bin/openssl/asn1pars.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1pars.c,v 1.4 2015/08/19 18:25:31 deraadt Exp $ */ 1/* $OpenBSD: asn1pars.c,v 1.5 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 *
@@ -247,6 +247,11 @@ asn1parse_main(int argc, char **argv)
247 BUF_MEM *buf = NULL; 247 BUF_MEM *buf = NULL;
248 ASN1_TYPE *at = NULL; 248 ASN1_TYPE *at = NULL;
249 249
250 if (single_execution) {
251 if (pledge("stdio rpath wpath cpath", NULL) == -1)
252 perror("pledge");
253 }
254
250 memset(&asn1pars_config, 0, sizeof(asn1pars_config)); 255 memset(&asn1pars_config, 0, sizeof(asn1pars_config));
251 256
252 asn1pars_config.informat = FORMAT_PEM; 257 asn1pars_config.informat = FORMAT_PEM;