diff options
author | jsing <> | 2014-12-28 16:22:37 +0000 |
---|---|---|
committer | jsing <> | 2014-12-28 16:22:37 +0000 |
commit | c24a164cd821984a3b548688ddfdd0b5c7a06563 (patch) | |
tree | 7c2d7055314f7a997398ccc4d632a9e294f88b81 /src/usr.bin/openssl/apps.h | |
parent | 84bb0d054839eafa37a0ae06c864c16155188d05 (diff) | |
download | openbsd-c24a164cd821984a3b548688ddfdd0b5c7a06563.tar.gz openbsd-c24a164cd821984a3b548688ddfdd0b5c7a06563.tar.bz2 openbsd-c24a164cd821984a3b548688ddfdd0b5c7a06563.zip |
Provide an option type that allows for a callback function to consume an
arbitrary number of arguments. This will allow for more complex option
handling as required by some of the openssl(1) applications.
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 c448e85d87..f0571480e2 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.11 2014/12/28 15:48:52 jsing Exp $ */ | 1 | /* $OpenBSD: apps.h,v 1.12 2014/12/28 16:22:37 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 | * |
@@ -286,6 +286,7 @@ struct option { | |||
286 | const char *desc; | 286 | const char *desc; |
287 | enum { | 287 | enum { |
288 | OPTION_ARG, | 288 | OPTION_ARG, |
289 | OPTION_ARGV_FUNC, | ||
289 | OPTION_ARG_FORMAT, | 290 | OPTION_ARG_FORMAT, |
290 | OPTION_ARG_FUNC, | 291 | OPTION_ARG_FUNC, |
291 | OPTION_ARG_INT, | 292 | OPTION_ARG_INT, |
@@ -297,6 +298,7 @@ struct option { | |||
297 | union { | 298 | union { |
298 | char **arg; | 299 | char **arg; |
299 | int (*argfunc)(char *arg); | 300 | int (*argfunc)(char *arg); |
301 | int (*argvfunc)(int argc, char **argv, int *argsused); | ||
300 | int *flag; | 302 | int *flag; |
301 | int (*func)(void); | 303 | int (*func)(void); |
302 | int *value; | 304 | int *value; |