From 31c9e04aeb255ae1ae51c6f06be5e4714c9e9054 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 28 Aug 2014 14:15:28 +0000 Subject: Add option handling with a callback function for argument processing. --- src/usr.bin/openssl/apps.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/usr.bin/openssl/apps.h') 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 @@ -/* $OpenBSD: apps.h,v 1.5 2014/08/28 13:39:07 jsing Exp $ */ +/* $OpenBSD: apps.h,v 1.6 2014/08/28 14:15:28 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -289,6 +289,7 @@ struct option { enum { OPTION_ARG, OPTION_ARG_FORMAT, + OPTION_ARG_FUNC, OPTION_ARG_INT, OPTION_FLAG, OPTION_FLAG_ORD, @@ -297,6 +298,7 @@ struct option { union { char **arg; int *flag; + int (*func)(struct option *opt, char *arg); int *value; } opt; const int value; -- cgit v1.2.3-55-g6feb