-/* $OpenBSD: ssl_lib.c,v 1.301 2022/08/17 07:39:19 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.302 2022/08/21 18:17:11 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
return -1;
}
+ if (SSL_is_quic(s)) {
+ SSLerror(s, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
+ return (-1);
+ }
+
if (s->internal->handshake_func == NULL) {
SSLerror(s, SSL_R_UNINITIALIZED);
return (-1);
return -1;
}
+ if (SSL_is_quic(s)) {
+ SSLerror(s, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
+ return (-1);
+ }
+
if (s->internal->handshake_func == NULL) {
SSLerror(s, SSL_R_UNINITIALIZED);
return (-1);
return -1;
}
+ if (SSL_is_quic(s)) {
+ SSLerror(s, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
+ return (-1);
+ }
+
if (s->internal->handshake_func == NULL) {
SSLerror(s, SSL_R_UNINITIALIZED);
return (-1);