}
#ifndef OPENSSL_NO_SCTP
- if (SSL_CONNECTION_IS_DTLS(s) && s->hit) {
+ /*
+ * Before exporting the SCTP auth key we check if DTLSv1.3 has been negotiated
+ * which is not supported.
+ * Refer to draft-tuexen-tsvwg-rfc6083-bis-04 for more info.
+ */
+ if (SSL_CONNECTION_IS_DTLS(s) && !SSL_CONNECTION_IS_DTLS13(s) && s->hit) {
unsigned char sctpauthkey[64];
char labelbuffer[sizeof(DTLS1_SCTP_AUTH_LABEL)];
size_t labellen;
pmslen = 0;
#ifndef OPENSSL_NO_SCTP
- if (SSL_CONNECTION_IS_DTLS(s)) {
+ /*
+ * Before exporting the SCTP auth key we check if DTLSv1.3 has been negotiated
+ * which is not supported.
+ * Refer to draft-tuexen-tsvwg-rfc6083-bis-04 for more info.
+ */
+ if (SSL_CONNECTION_IS_DTLS(s) && !SSL_CONNECTION_IS_DTLS13(s)) {
unsigned char sctpauthkey[64];
char labelbuffer[sizeof(DTLS1_SCTP_AUTH_LABEL)];
size_t labellen;
break;
}
#ifndef OPENSSL_NO_SCTP
- if (SSL_CONNECTION_IS_DTLS(s) && s->hit) {
+ /*
+ * Before exporting the SCTP auth key we check if DTLSv1.3 has been negotiated
+ * which is not supported.
+ * Refer to draft-tuexen-tsvwg-rfc6083-bis-04 for more info.
+ */
+ if (SSL_CONNECTION_IS_DTLS(s) && !SSL_CONNECTION_IS_DTLS13(s) && s->hit) {
unsigned char sctpauthkey[64];
char labelbuffer[sizeof(DTLS1_SCTP_AUTH_LABEL)];
size_t labellen;
{
#ifndef OPENSSL_NO_SCTP
if (wst == WORK_MORE_A) {
- if (SSL_CONNECTION_IS_DTLS(s)) {
+ /*
+ * Before exporting the SCTP auth key we check if DTLSv1.3 has been
+ * negotiated which is not supported.
+ * Refer to draft-tuexen-tsvwg-rfc6083-bis-04 for more info.
+ */
+ if (SSL_CONNECTION_IS_DTLS(s) && !SSL_CONNECTION_IS_DTLS13(s)) {
unsigned char sctpauthkey[64];
char labelbuffer[sizeof(DTLS1_SCTP_AUTH_LABEL)];
size_t labellen;
if (no_etm)
SSL_set_options(srvr_ssl, SSL_OP_NO_ENCRYPT_THEN_MAC);
-#ifndef OPENSSL_NO_SCTP
- /**
- * TODO(DTLSv1.3): Fix SCTP support
- * This test is failing on exporting the sctp auth key on server and client
- * because ossl_statem_export_allowed() fails.
- * ossl_statem_server_post_work:internal error:ssl/statem/statem_srvr.c:937:
- * and
- * tls_process_server_hello:internal error:ssl/statem/statem_clnt.c:1763:
- */
- OPENSSL_assert(SSL_set_max_proto_version(clnt_ssl, DTLS1_2_VERSION) == 1);
-#endif
-
if (!TEST_true(SSL_set_cipher_list(srvr_ssl, cs))
|| !TEST_true(SSL_set_cipher_list(clnt_ssl, cs))
|| !TEST_ptr(sc_bio = SSL_get_rbio(srvr_ssl))