Add compilation flag to disable certain protocol checks and allow use of
some invalid operations for testing purposes. Currently this can be used to sign using digests the peer doesn't support, EC curves the peer doesn't support and use certificates which don't match the type associated with a ciphersuite.
This commit is contained in:
@@ -1007,6 +1007,10 @@ int MAIN(int argc, char **argv)
|
||||
}
|
||||
else if (strcmp(*argv, "-cert_strict") == 0)
|
||||
cert_flags |= SSL_CERT_FLAG_TLS_STRICT;
|
||||
#ifdef OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL
|
||||
else if (strcmp(*argv, "-debug_broken_protocol") == 0)
|
||||
cert_flags |= SSL_CERT_FLAG_BROKEN_PROTCOL;
|
||||
#endif
|
||||
else
|
||||
{
|
||||
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
||||
|
||||
@@ -1440,6 +1440,10 @@ int MAIN(int argc, char *argv[])
|
||||
}
|
||||
else if (strcmp(*argv, "-cert_strict") == 0)
|
||||
cert_flags |= SSL_CERT_FLAG_TLS_STRICT;
|
||||
#ifdef OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL
|
||||
else if (strcmp(*argv, "-debug_broken_protocol") == 0)
|
||||
cert_flags |= SSL_CERT_FLAG_BROKEN_PROTCOL;
|
||||
#endif
|
||||
else
|
||||
{
|
||||
BIO_printf(bio_err,"unknown option %s\n",*argv);
|
||||
|
||||
Reference in New Issue
Block a user