mirror of https://github.com/getdnsapi/getdns.git
Add support for dot ALPN for GnuTLS
This commit is contained in:
parent
9d8eea97a5
commit
adcdf20289
|
@ -393,6 +393,12 @@ _getdns_tls_connection* _getdns_tls_connection_new(struct mem_funcs* mfs, _getdn
|
||||||
if (dane_state_init(&res->dane_state, DANE_F_IGNORE_DNSSEC) != DANE_E_SUCCESS)
|
if (dane_state_init(&res->dane_state, DANE_F_IGNORE_DNSSEC) != DANE_E_SUCCESS)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
|
gnutls_datum_t proto;
|
||||||
|
proto.data = (unsigned char *)"dot";
|
||||||
|
proto.size = 3;
|
||||||
|
if (gnutls_alpn_set_protocols(res->tls, &proto, 1, 0) != GNUTLS_E_SUCCESS)
|
||||||
|
goto failed;
|
||||||
|
|
||||||
gnutls_transport_set_int(res->tls, fd);
|
gnutls_transport_set_int(res->tls, fd);
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue