Skip to content

Commit

Permalink
Add RFC 8499 to the RFC list.
Browse files Browse the repository at this point in the history
  • Loading branch information
rthalley committed Nov 27, 2023
1 parent 7cce928 commit 0ebe71a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dns/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions doc/rfc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Misc RFCs
`RFC 4343 <https://tools.ietf.org/html/rfc4343>`_
Case-sensitivity clarification.

`RFC 8499 <https://tools.ietf.org/html/rfc8499>`_
DNS Terminology.

Additional Transport RFCs
-------------------------

Expand Down

0 comments on commit 0ebe71a

Please sign in to comment.