commit b8d8b55aeb58d0564f74be9390e8d8636a2690d2
parent fd5a91333a9dd1e8770a6b993fc277427698a0e7
Author: parazyd <parazyd@dyne.org>
Date: Sat, 28 Mar 2020 22:00:22 +0100
Update licensing.
Diffstat:
14 files changed, 13 insertions(+), 120 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -1,5 +1,5 @@
-Copyright (c) 2018-2019 Ivan J. <parazyd@dyne.org>
-Copyright (c) 2011-2016 Christoph Lohmann <20h@r-36.net>
+Copyright (c) 2018-2020 Ivan J. <parazyd@dyne.org>
+Copyright (c) 2011-2020 Christoph Lohmann <20h@r-36.net>
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
diff --git a/headers.c b/headers.c
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#include <stdio.h>
#include <string.h>
diff --git a/headers.h b/headers.h
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#ifndef __RPHEADERS_H__
#define __RPHEADERS_H__
diff --git a/ind.c b/ind.c
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#include <stdarg.h>
#include <stdio.h>
diff --git a/ind.h b/ind.h
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#ifndef __RPIND_H__
#define __RPIND_H__
diff --git a/net.c b/net.c
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by 20h and parazyd
- */
+/* See LICENSE file for copyright and license details */
#include <unistd.h>
#include <netdb.h>
diff --git a/net.h b/net.h
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by 20h and parazyd
- */
+/* See LICENSE file for copyright and license details */
#ifndef __RPNET_H__
#define __RPNET_H__
diff --git a/rohrpost.c b/rohrpost.c
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#include <stdio.h>
#include <string.h>
diff --git a/sieve.c b/sieve.c
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#include <stdio.h>
#include <string.h>
diff --git a/sieve.h b/sieve.h
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#ifndef __RPSIEVE_H__
#define __RPSIEVE_H__
diff --git a/test/Makefile b/test/Makefile
@@ -1,24 +0,0 @@
-BIN = \
- nettest
-
-ccflags = -g -std=c99 -Wall -pedantic -I.. -lssl -lcrypto -D_GNU_SOURCE
-
-all: clean $(BIN) test
-
-test:
- @for i in $(BIN); do \
- echo "================================"; \
- echo " *** Running $$i ***"; \
- echo "================================"; \
- ./$$i; \
- echo "================================"; \
- done
-
-nettest:
- cc $(ccflags) -o $@ $@.c ../net.c ../ind.c
-
-fprtest:
- cc $(ccflags) -o $@ $@.c ../net.c ../ind.c
-
-clean:
- rm -f $(BIN)
diff --git a/test/nettest.c b/test/nettest.c
@@ -1,50 +0,0 @@
-/*
- * Copy me if you can
- * by parazyd
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "net.h"
-
-int main(void) {
- net_t *net;
- char buf[4097];
- int len;
-
- memset(&buf, 0, sizeof(buf));
-
- printf("net_new tcps!www.facebook.com!https\n");
- net = net_new("tcps!www.facebook.com!https");
- if (net == NULL) {
- perror("net_new");
- printf("FAIL\n");
- exit(EXIT_FAILURE);
- }
-
- printf("net_connect\n");
- if (net_connect(net)) {
- perror("net_connect");
- printf("FAIL\n");
- exit(EXIT_FAILURE);
- }
-
- printf("net_printf GET / HTTP 1.1 ...\n");
- net_printf(net, "GET / HTTP/1.1\r\nHost: www.facebook.com\r\n"
- "Connection: close\r\n\r\n");
-
- printf("net_read\n");
- while((len = net_read(net, buf, sizeof(buf)-1)) > 0)
- fwrite(buf, len, 1, stdout);
-
- printf("net_close\n");
- net_close(net);
-
- printf("net_free\n");
- net_free(net);
-
- printf("SUCCESS\n");
- return EXIT_SUCCESS;
-}
diff --git a/util.c b/util.c
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#include <stdio.h>
diff --git a/util.h b/util.h
@@ -1,7 +1,4 @@
-/*
- * Copy me if you can
- * by parazyd
- */
+/* See LICENSE file for copyright and license details */
#ifndef __RPUTIL_H__
#define __RPUTIL_H__