From a052b95c8135cdc5f9b91f8efc991cac80fbbe8b Mon Sep 17 00:00:00 2001 From: eunhhu Date: Tue, 29 Sep 2026 07:06:27 +0100 Subject: Put the links and the crypto they use in link/, a part of their own libpure-link.a holds them; pure-serve and the M5 harness link it instead of naming its source files. --- serve/tls.h | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 serve/tls.h (limited to 'serve/tls.h') diff --git a/serve/tls.h b/serve/tls.h deleted file mode 100644 index 704924d..0000000 --- a/serve/tls.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef PURE_TLS_H -#define PURE_TLS_H -#include -#include - -/* TLS to https receivers (serve/crypto.c): one client context, verifying a - * receiver's certificate against the system's CAs or ca_file, and its name. */ -typedef struct PureTls PureTls; -/* The context, made once; false with why in error when it cannot be. */ -bool pure_tls_start(const char *ca_file, char *error, size_t size); -/* A session over a connected socket to host (a DNS name, or an IP address - * written as one), its certificate verified; NULL when it fails. */ -PureTls *pure_tls_open(const char *host, int fd); -/* As SSL_read and SSL_write: the bytes moved, or <= 0. */ -int pure_tls_read(PureTls *, void *bytes, int size); -int pure_tls_write(PureTls *, const void *bytes, int size); -void pure_tls_close(PureTls *); -#endif -- cgit v1.2.3