24 bool requesting_client_auth) {
47 m_extensions.add(
new Record_Size_Limit(record_size_limit.value_or(max_record_size)));
48 }
else if(record_size_limit.has_value() && record_size_limit.value() < max_record_size) {
54 "Server cannot enforce record size limit without the client supporting it");
72 ch_client_cert_types !=
nullptr && requesting_client_auth) {
99 const auto& offered = alpn_ext->protocols();
101 if(!next_protocol.empty()) {
106 "Application chose an ALPN protocol that the client did not offer");
125 Alert::InternalError,
126 "Application tls_modify_extensions callback removed Server_Certificate_Type from EncryptedExtensions");
131 Alert::InternalError,
132 "Application tls_modify_extensions callback removed Client_Certificate_Type from EncryptedExtensions");