Disallow multiple protocol flags to s_server and s_client
authorMatt Caswell <matt@openssl.org>
Tue, 5 Jul 2016 15:56:33 +0000 (16:56 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 8 Jul 2016 15:24:00 +0000 (16:24 +0100)
commite88a5cfc2c96221c690bf749d13697b7a0f5b898
tree8212f6dd3bb28b987c0a7e2dc53341be17e8f790
parent23aec60661cd8fc39b31809c18e03efb98f4882a
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/s_apps.h
apps/s_cb.c
apps/s_client.c
apps/s_server.c