dtls13Label

fnstring dtls13Label(string tls13Label) pure nothrow @safe

Converts a TLS 1.3 label to DTLS 1.3 format.

DTLS 1.3 uses a different label prefix than TLS 1.3. This function prepends the DTLS 1.3 prefix to a bare label string.

Parameters

tls13LabelThe TLS 1.3 label without prefix (e.g., "c hs traffic").

Returns

The label with DTLS 1.3 prefix (e.g., "dtls13 c hs traffic").

Example:

assert(dtls13Label("c hs traffic") == "dtls13 c hs traffic");
assert(dtls13Label("derived") == "dtls13 derived");