From: Bob Halley Date: Mon, 27 Nov 2023 22:41:31 +0000 (-0800) Subject: Add RFC 8499 to the RFC list. X-Git-Tag: v2.5.0rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ebe71ad35139b155b90b541a681409733ac4eff;p=thirdparty%2Fdnspython.git Add RFC 8499 to the RFC list. --- diff --git a/dns/query.py b/dns/query.py index a5fc6023..a800a3e1 100644 --- a/dns/query.py +++ b/dns/query.py @@ -869,7 +869,7 @@ def send_tcp( # copying the wire into tcpmsg is inefficient, but lets us # avoid writev() or doing a short write that would get pushed # onto the net - tcpmsg = len(what).to_bytes(2, 'big') + what + tcpmsg = len(what).to_bytes(2, "big") + what sent_time = time.time() _net_write(sock, tcpmsg, expiration) return (len(tcpmsg), sent_time) @@ -1093,6 +1093,8 @@ def tls( ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2 if server_hostname is None: ssl_context.check_hostname = False + print("HAS_ALPN", ssl.HAS_ALPN) + ssl_context.set_alpn_protocols(["dot"]) with _make_socket( af, @@ -1103,6 +1105,7 @@ def tls( ) as s: _connect(s, destination, expiration) _tls_handshake(s, expiration) + print("ALPN", s.selected_alpn_protocol()) send_tcp(s, wire, expiration) (r, received_time) = receive_tcp( s, expiration, one_rr_per_rrset, q.keyring, q.mac, ignore_trailing diff --git a/doc/rfc.rst b/doc/rfc.rst index 9e98bfa6..4c798477 100644 --- a/doc/rfc.rst +++ b/doc/rfc.rst @@ -123,6 +123,9 @@ Misc RFCs `RFC 4343 `_ Case-sensitivity clarification. +`RFC 8499 `_ + DNS Terminology. + Additional Transport RFCs -------------------------