diff options
author | jsing <> | 2014-08-28 14:15:28 +0000 |
---|---|---|
committer | jsing <> | 2014-08-28 14:15:28 +0000 |
commit | 31c9e04aeb255ae1ae51c6f06be5e4714c9e9054 (patch) | |
tree | 7ad8821d2764d0d699b6be9caad478781a13d65f /src/usr.bin/openssl/apps.h | |
parent | f430ac8944374866d079eae7d55e530af6edae73 (diff) | |
download | openbsd-31c9e04aeb255ae1ae51c6f06be5e4714c9e9054.tar.gz openbsd-31c9e04aeb255ae1ae51c6f06be5e4714c9e9054.tar.bz2 openbsd-31c9e04aeb255ae1ae51c6f06be5e4714c9e9054.zip |
Add option handling with a callback function for argument processing.
Diffstat (limited to 'src/usr.bin/openssl/apps.h')
-rw-r--r-- | src/usr.bin/openssl/apps.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/apps.h b/src/usr.bin/openssl/apps.h index 3ea855f684..277dcc3699 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.5 2014/08/28 13:39:07 jsing Exp $ */ | 1 | /* $OpenBSD: apps.h,v 1.6 2014/08/28 14:15:28 jsing 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 | * |
@@ -289,6 +289,7 @@ struct option { | |||
289 | enum { | 289 | enum { |
290 | OPTION_ARG, | 290 | OPTION_ARG, |
291 | OPTION_ARG_FORMAT, | 291 | OPTION_ARG_FORMAT, |
292 | OPTION_ARG_FUNC, | ||
292 | OPTION_ARG_INT, | 293 | OPTION_ARG_INT, |
293 | OPTION_FLAG, | 294 | OPTION_FLAG, |
294 | OPTION_FLAG_ORD, | 295 | OPTION_FLAG_ORD, |
@@ -297,6 +298,7 @@ struct option { | |||
297 | union { | 298 | union { |
298 | char **arg; | 299 | char **arg; |
299 | int *flag; | 300 | int *flag; |
301 | int (*func)(struct option *opt, char *arg); | ||
300 | int *value; | 302 | int *value; |
301 | } opt; | 303 | } opt; |
302 | const int value; | 304 | const int value; |