diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2018-02-06 04:19:57 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2018-02-06 04:19:57 +0000 |
commit | 79bd45e7d08d96efa78ece80aa8879fce293cc63 (patch) | |
tree | 941ffff71be943285aebdd41de1a240dcb5165d4 /usr.sbin/acme-client/http.c | |
parent | 56b50f87416aff71d1e49d26311635b2b0941d72 (diff) |
kill dead code
Diffstat (limited to 'usr.sbin/acme-client/http.c')
-rw-r--r-- | usr.sbin/acme-client/http.c | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/usr.sbin/acme-client/http.c b/usr.sbin/acme-client/http.c index 921668f1add..599f161437c 100644 --- a/usr.sbin/acme-client/http.c +++ b/usr.sbin/acme-client/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.20 2017/03/26 18:41:02 deraadt Exp $ */ +/* $Id: http.c,v 1.21 2018/02/06 04:19:56 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -736,49 +736,3 @@ http_get(const struct source *addrs, size_t addrsz, const char *domain, g->http = h; return g; } - -#if 0 -int -main(void) -{ - struct httpget *g; - struct httphead *httph; - size_t i, httphsz; - struct source addrs[2]; - size_t addrsz; - -#if 0 - addrs[0].ip = "127.0.0.1"; - addrs[0].family = 4; - addrsz = 1; -#else - addrs[0].ip = "2a00:1450:400a:806::2004"; - addrs[0].family = 6; - addrs[1].ip = "193.135.3.123"; - addrs[1].family = 4; - addrsz = 2; -#endif - - if (http_init() == -1) - errx(EXIT_FAILURE, "http_init"); - -#if 0 - g = http_get(addrs, addrsz, "localhost", 80, "/index.html"); -#else - g = http_get(addrs, addrsz, "www.google.ch", 80, "/index.html", - NULL, 0); -#endif - - if (g == NULL) - errx(EXIT_FAILURE, "http_get"); - - httph = http_head_parse(g->http, g->xfer, &httphsz); - warnx("code: %d", g->code); - - for (i = 0; i < httphsz; i++) - warnx("head: [%s]=[%s]", httph[i].key, httph[i].val); - - http_get_free(g); - return (EXIT_SUCCESS); -} -#endif |