=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/apps.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/openssl/apps.h 2014/08/26 17:47:24 1.1 +++ src/usr.bin/openssl/apps.h 2014/08/27 14:59:44 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: apps.h,v 1.1 2014/08/26 17:47:24 jsing Exp $ */ +/* $OpenBSD: apps.h,v 1.2 2014/08/27 14:59:44 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -281,5 +281,25 @@ double app_tminterval (int stop, int usertime); #define OPENSSL_NO_SSL_INTERN + +struct option { + const char *name; + const char *argname; + const char *desc; + enum { + OPTION_ARG, + OPTION_FLAG, + OPTION_VALUE, + } type; + union { + char **arg; + int *flag; + int *value; + } opt; + const int value; +}; + +void options_usage(struct option *opts); +int options_parse(int argc, char **argv, struct option *opts, char **unnamed); #endif