Skip to content

Agent KB_tls_u

grisun0 edited this page Oct 28, 2026 · 13 revisions

Subsystem: tls_u

progs/tls_u/tls_u_main.c

  • Doc: tlsget - minimal HTTPS GET over the ring-3 TLS stack.
  • Layer: utility
  • Language: c
  • Symbols:
    • syscall (function, line 10) `* the MiniOS DNS syscall (200, sig 0: error-check only, sends nothing).
  • The kernel keeps servi...`
  • parse_port (function, line 47) static int parse_port(const char *s)
  • main (function, line 61) int main(int argc, char **argv)
  • _POSIX_C_SOURCE (macro, line 14) #define _POSIX_C_SOURCE
  • _DEFAULT_SOURCE (macro, line 15) #define _DEFAULT_SOURCE
  • Depends on: headers/tls.h, headers/tls_port.h, kernel/string.c

progs/tls_u/tls_u_port.c

  • Doc: ring-3 transport for the shared TLS stack (TLS_RING3).
  • Layer: utility
  • Language: c
  • Symbols:
    • sockets (function, line 5) `* sockets: on the host they are host sockets (used by the
  • openssl-s_server interop test), insi...`
  • tls_u_recv (function, line 39) int tls_u_recv(int fd, char *buf, int len)
  • tls_u_recv_timeout (function, line 44) int tls_u_recv_timeout(int fd, char *buf, int len, unsigned long ms)
  • tls_u_close (function, line 55) void tls_u_close(int fd)
  • tls_close (function, line 67) void tls_close(int fd)
  • tls_now_days (function, line 72) long tls_now_days(void)
  • tls_random (function, line 78) void tls_random(unsigned char *out, unsigned len)
  • u_raw_syscall3 (function, line 99) static long u_raw_syscall3(long n, long a1, long a2, long a3)
  • parse_quad (function, line 122) static int parse_quad(const char *s, unsigned *ip_out)
  • tls_u_resolve (function, line 147) int tls_u_resolve(const char *host, unsigned *ip_out)
  • net_dns_resolve (function, line 183) int net_dns_resolve(const char *host)
  • tls_free_fd (function, line 66) void tls_free_fd(int fd);
  • answer (function, line 163) * answer (some resolvers go IPv6-only on the first query). */ memset(&hints, 0, sizeof(hints));
  • _POSIX_C_SOURCE (macro, line 12) #define _POSIX_C_SOURCE
  • _DEFAULT_SOURCE (macro, line 13) #define _DEFAULT_SOURCE
  • Depends on: kernel/string.c, kernel/time.c

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally