Remove the shortcut to use the INITIAL encryption level when removing
header protection on first connection packet.
This change is useful for the following change which removes
ssl_sock_ctx in argument lists in favor of the quic_conn instance.
{
enum quic_tls_enc_level tel;
- /* Special case without connection context (first Initial packets) */
- if (!ctx) {
- *qel = &qc->els[QUIC_TLS_ENC_LEVEL_INITIAL];
- return 1;
- }
-
tel = quic_packet_type_enc_level(pkt->type);
if (tel == QUIC_TLS_ENC_LEVEL_NONE) {
*qel = NULL;