diff options
author | 2018-02-06 04:19:56 +0000 | |
---|---|---|
committer | 2018-02-06 04:19:56 +0000 | |
commit | 44216bdff5019e0a221951c2cd9363ce8049fd21 (patch) | |
tree | 93bdc958309aa6bda51da1360674d2a014df4b4a | |
parent | output the data part of LCP Echo-Request and Echo-Reply packets. (diff) | |
download | wireguard-openbsd-44216bdff5019e0a221951c2cd9363ce8049fd21.tar.xz wireguard-openbsd-44216bdff5019e0a221951c2cd9363ce8049fd21.zip |
kill dead code
-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 |