code wiki / _hdl_build / nx_pub_tls_serve.nx

nx_pub_tls_serve.nx

buildroot/runtime/_hdl_build/nx_pub_tls_serve.nx

1341 B19 linesdepth 13pulls 39 transitivereach 1 importersview sourcekind librarytopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_tls_serve.nx -- pub_tls: serve the publisher's liveroot over the ecosystem's PROVEN sovereign TLS-1.3 server. The publisher does NOT re-implement TLS. It composes the proven sovereign stack: nx_edge_serve_static_response (builds the HTTP/1.1 response and AEAD-encrypts it via nx_tls13_server_session_app_send under the server app-traffic key) sitting on the TLS-1.3 server arc whose full handshake is proven by nx_tls13_server_full_handshake_test. pub_tls_http_for_file is the publisher-owned bridge: liveroot file -> the served HTTP response (the plaintext the TLS layer then encrypts). pub_tls_serve_file is the over-session path. license_tier: ORIGINAL

dependencies 3 imports · 1 importers

nx_syscalls.nx nx_publisher.nx nx_edge_serve_static.nx nx_pub_tls_serve.nx nx_pub_tls_gate.nx

imports: nx_syscalls.nxnx_publisher.nxnx_edge_serve_static.nx

imported by: nx_pub_tls_gate.nx

structs

none

consts

11const K_MAGIC_1280: i64 = 1280

functions

14func pub_tls_http_for_file(liveroot: *u8, urlpath: *u8, out: *u8, cap: i64) -> i64