summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/apps.h
diff options
context:
space:
mode:
authorjsing <>2014-12-28 14:21:42 +0000
committerjsing <>2014-12-28 14:21:42 +0000
commita8ff639ef64a4a39745c3e48767ad1ae0daa8aae (patch)
tree9d3a06168c584d1ca915a233182c758c542e7f67 /src/usr.bin/openssl/apps.h
parent070fa2ca836397fc6db2744ec5f57833916b6511 (diff)
downloadopenbsd-a8ff639ef64a4a39745c3e48767ad1ae0daa8aae.tar.gz
openbsd-a8ff639ef64a4a39745c3e48767ad1ae0daa8aae.tar.bz2
openbsd-a8ff639ef64a4a39745c3e48767ad1ae0daa8aae.zip
Provide two different function pointers for option function callbacks. This
allows for simpler code in the common cases and will allow for further extension to support the complex cases.
Diffstat (limited to 'src/usr.bin/openssl/apps.h')
-rw-r--r--src/usr.bin/openssl/apps.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/apps.h b/src/usr.bin/openssl/apps.h
index b2b7e85107..b069d2d29b 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.9 2014/12/14 14:42:06 jsing Exp $ */ 1/* $OpenBSD: apps.h,v 1.10 2014/12/28 14:21:42 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 *
@@ -296,10 +296,11 @@ struct option {
296 } type; 296 } type;
297 union { 297 union {
298 char **arg; 298 char **arg;
299 int (*argfunc)(char *arg);
299 int *flag; 300 int *flag;
301 int (*func)(void);
300 int *value; 302 int *value;
301 } opt; 303 } opt;
302 int (*func)(struct option *opt, char *arg);
303 const int value; 304 const int value;
304}; 305};
305 306