summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/apps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/apps.c')
-rw-r--r--src/usr.bin/openssl/apps.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/apps.c b/src/usr.bin/openssl/apps.c
index d3c31947f3..5a6bb7a2ee 100644
--- a/src/usr.bin/openssl/apps.c
+++ b/src/usr.bin/openssl/apps.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: apps.c,v 1.22 2014/12/28 16:51:31 jsing Exp $ */ 1/* $OpenBSD: apps.c,v 1.23 2015/01/01 14:28:00 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -2359,6 +2359,14 @@ options_parse(int argc, char **argv, struct option *opts, char **unnamed,
2359 *opt->opt.value = opt->value; 2359 *opt->opt.value = opt->value;
2360 break; 2360 break;
2361 2361
2362 case OPTION_VALUE_AND:
2363 *opt->opt.value &= opt->value;
2364 break;
2365
2366 case OPTION_VALUE_OR:
2367 *opt->opt.value |= opt->value;
2368 break;
2369
2362 default: 2370 default:
2363 fprintf(stderr, "option %s - unknown type %i\n", 2371 fprintf(stderr, "option %s - unknown type %i\n",
2364 opt->name, opt->type); 2372 opt->name, opt->type);