From 24a3218467ac9ed1181b234ac005f074d5056053 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 20 Aug 2020 09:53:08 -0500 Subject: remove libtls-standalone, it's unmaintained libtls-standalone was originally intended to make something that could link to any other OpenSSL fork or OpenSSL itself, but I don't think there's anyone who is terribly interested in that after all, so let's clean this up. #610 may be the better solution anyway. --- libtls-standalone/tests/test.c | 51 ------------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 libtls-standalone/tests/test.c (limited to 'libtls-standalone/tests/test.c') diff --git a/libtls-standalone/tests/test.c b/libtls-standalone/tests/test.c deleted file mode 100644 index 4069332..0000000 --- a/libtls-standalone/tests/test.c +++ /dev/null @@ -1,51 +0,0 @@ -#include -#include - -int main() -{ - struct tls *tls; - struct tls_config *tls_config; - ssize_t written, read; - char buf[4096]; - - if (tls_init() != 0) { - fprintf(stderr, "tls_init failed"); - return 1; - } - - if ((tls = tls_client()) == NULL) - goto err; - - if ((tls_config = tls_config_new()) == NULL) - goto err; - - if (tls_config_set_ciphers(tls_config, "compat") != 0) - goto err; - - tls_config_insecure_noverifycert(tls_config); - tls_config_insecure_noverifyname(tls_config); - - if (tls_configure(tls, tls_config) != 0) - goto err; - - if (tls_connect(tls, "google.com", "443") != 0) - goto err; - - if ((written = tls_write(tls, "GET /\r\n", 7)) < 0) - goto err; - - if ((read = tls_read(tls, buf, sizeof(buf))) < 0) - goto err; - - buf[read - 1] = '\0'; - puts(buf); - - if (tls_close(tls) != 0) - goto err; - - return 0; - -err: - fprintf(stderr, "%s\n", tls_error(tls)); - return 1; -} -- cgit v1.2.3-55-g6feb