Disallow multiple protocol flags to s_server and s_client
authorMatt Caswell <matt@openssl.org>
Thu, 7 Jul 2016 10:05:31 +0000 (11:05 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 8 Jul 2016 15:20:59 +0000 (16:20 +0100)
commit4bbd4ba66dec4ca35502b8fac0315b447fde4d7a
treea691cad44820d09910e0d93cb1ed78966189c16b
parent3503549ee8bd59d23d00b9dbbc2444e91fc44746
Disallow multiple protocol flags to s_server and s_client

We shouldn't allow both "-tls1" and "-tls1_2", or "-tls1" and "-no_tls1_2".
The only time multiple flags are allowed is where they are all "-no_<prot>".

This fixes Github Issue #1268

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/apps.h
apps/s_client.c
apps/s_server.c