summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/apps.h
diff options
context:
space:
mode:
authorinoguchi <>2021-03-24 12:07:39 +0000
committerinoguchi <>2021-03-24 12:07:39 +0000
commit5129f427750164d91485e246e88bc28013ac7567 (patch)
treea6475327c85ffbf84cc90fb595ed626303422704 /src/usr.bin/openssl/apps.h
parent22638d4b1be941de65b47260040fef489ae2afe9 (diff)
downloadopenbsd-5129f427750164d91485e246e88bc28013ac7567.tar.gz
openbsd-5129f427750164d91485e246e88bc28013ac7567.tar.bz2
openbsd-5129f427750164d91485e246e88bc28013ac7567.zip
Add option type OPTION_ORDER
To handle incremental order value, added new option type OPTION_ORDER. openssl(1) x509 requires this option handling, since, - -CA and -signkey require to set both filename and incremental 'num'. - -dates requires to set two variables in a row, startdate and enddate. and this couldn't be solved by OPTION_FLAG_ORD. ok tb@ and "I'd move forward with your current plan." from jsing@
Diffstat (limited to 'src/usr.bin/openssl/apps.h')
-rw-r--r--src/usr.bin/openssl/apps.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/apps.h b/src/usr.bin/openssl/apps.h
index 10612a9c97..d5f3706ee7 100644
--- a/src/usr.bin/openssl/apps.h
+++ b/src/usr.bin/openssl/apps.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: apps.h,v 1.24 2020/09/09 12:47:46 inoguchi Exp $ */ 1/* $OpenBSD: apps.h,v 1.25 2021/03/24 12:07:39 inoguchi 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 *
@@ -304,6 +304,7 @@ struct option {
304 OPTION_VALUE_AND, 304 OPTION_VALUE_AND,
305 OPTION_VALUE_OR, 305 OPTION_VALUE_OR,
306 OPTION_UL_VALUE_OR, 306 OPTION_UL_VALUE_OR,
307 OPTION_ORDER,
307 } type; 308 } type;
308 union { 309 union {
309 char **arg; 310 char **arg;
@@ -315,9 +316,11 @@ struct option {
315 int *value; 316 int *value;
316 unsigned long *ulvalue; 317 unsigned long *ulvalue;
317 time_t *tvalue; 318 time_t *tvalue;
319 int *order;
318 } opt; 320 } opt;
319 const int value; 321 const int value;
320 const unsigned long ulvalue; 322 const unsigned long ulvalue;
323 int *order;
321}; 324};
322 325
323void options_usage(const struct option *opts); 326void options_usage(const struct option *opts);