code wiki / bin / nx_tls13_ed25519_test_daemon.nx

nx_tls13_ed25519_test_daemon.nx

buildroot/runtime/bin/nx_tls13_ed25519_test_daemon.nx

4893 B128 linesdepth 14pulls 66 transitivereach 0 importersview sourcekind servicetopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_ed25519_test_daemon.nx -- V-HOST-2+1-4b runtime roundtrip daemon. Minimal test daemon proving V-HOST-2+1 Ed25519 TLS sig path works end-to-end against a real TLS 1.3 client (openssl s_client). FLOW: 1. Read /tmp/nx_cert_gen_demo_ed25519_cert.der + priv.bin (32B) (PREREQ: nx_cert_gen smoke produced these via V-HOST-4c Ed25519 path) 2. nx_csprng_fill 32B server_random + 32B server_x25519_priv 3. nx_http_server_listen on 127.0.0.1:7443 4. Accept ONE connection; call nx_tls13_server_session_run_ed25519 5. After handshake completes, send tiny HTTP body via session.app_send 6. Close + exit Per Cardinal 7 (Test Before Ship) + operator "no not finished arcs": this daemon is the runtime gate that proves the V-HOST-2+1 Ed25519 TLS sig path actually works (not just compiles). COMPOSES (all sovereign): nx_syscalls (sys_read_file + sys_close + sys_exit + sys_write) nx_csprng (random for server_random + x25519 priv) nx_http_server (sovereign HTTP/TCP server primitives -- listen + accept) nx_tls13_server_session_run_ed25519 (V-HOST-2+1-2 LIVE) nx_tls13_server_session_app_send (send encrypted record per TLS 1.3)

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_csprng.nx nx_http_server.nx nx_tls13_server_session.nx nx_tls13_server_session_run.nx nx_tls13_server_session_app_data.n nx_tls13_ed25519_test_daemon.n

imports: nx_syscalls.nxnx_csprng.nxnx_http_server.nxnx_tls13_server_session.nxnx_tls13_server_session_run.nxnx_tls13_server_session_app_data.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_http_server_addr_loopba nx_http_server_make_sockad nx_http_server_listen sys_ignore_sigpipe sys_mmap ↻ sys_socket sys_mmap ↻ sys_setsockopt sys_bind sys_close ↻ sys_listen sys_write nx_http_server_accept_one sys_accept sys_close ↻ nx_tls13_server_session_ru nx_tls13_server_session_ne sys_mmap ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch_init nx_scratch nx_scratch_init ↻

structs

none

consts

33const NX_T13TD_PORT: i64 = 7443
36const NX_T13TD_HTTP_RESP: *u8 = "HTTP/1.0 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 3\r\nConnection: close\r\n\r\nOK\n" as *u8
37const NX_T13TD_HTTP_RESP_N: i64 = 86
39const NX_T13TD_OK: i64 = 0
40const NX_T13TD_ENOENT: i64 = 1
41const NX_T13TD_BAD_PRIV_SIZE: i64 = 2
42const NX_T13TD_BIND_FAILED: i64 = 3
43const NX_T13TD_ACCEPT_FAILED: i64 = 4
44const NX_T13TD_HS_FAILED: i64 = 5
45const NX_T13TD_APP_SEND_FAILED: i64 = 6
46const NX_T13TD_WRITE_FAILED: i64 = 7

functions

48func main() -> i64