Remove last peeking at TLS1_FLAGS_SKIP_CERT_VERIFY
authortb <tb@openbsd.org>
Sat, 3 Feb 2024 18:03:49 +0000 (18:03 +0000)
committertb <tb@openbsd.org>
Sat, 3 Feb 2024 18:03:49 +0000 (18:03 +0000)
This was used for some GOST weirdness. The flag is unused in ports and
there is no user in Debian's codesearch.

ok beck

lib/libssl/ssl_clnt.c

index 56fb9ba..feb29ee 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_clnt.c,v 1.164 2024/02/03 15:58:33 beck Exp $ */
+/* $OpenBSD: ssl_clnt.c,v 1.165 2024/02/03 18:03:49 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -455,12 +455,6 @@ ssl3_connect(SSL *s)
                                s->s3->hs.state = SSL3_ST_CW_CHANGE_A;
                                s->s3->change_cipher_spec = 0;
                        }
-                       if (!SSL_is_dtls(s)) {
-                               if (s->s3->flags & TLS1_FLAGS_SKIP_CERT_VERIFY) {
-                                       s->s3->hs.state = SSL3_ST_CW_CHANGE_A;
-                                       s->s3->change_cipher_spec = 0;
-                               }
-                       }
 
                        s->init_num = 0;
                        break;