It is mandatory to receive the `signature_algorithms` extension when a
server is authenticating with a certificate, which is always the case.
}
extensions->destroy(extensions);
+ if (this->tls->get_version_max(this->tls) >= TLS_1_3 && !this->hashsig.len)
+ {
+ DBG1(DBG_TLS, "no %N extension received", tls_extension_names,
+ TLS_MISSING_EXTENSION);
+ this->alert->add(this->alert, TLS_FATAL, TLS_MISSING_EXTENSION);
+ return NEED_MORE;
+ }
+
memcpy(this->client_random, random.ptr, sizeof(this->client_random));
htoun32(&this->server_random, time(NULL));