aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2020-02-27 17:24:33 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2020-02-27 17:40:57 +0200
commitf08fb73d6ab98b26e738d89b59f21c2f72b432a6 (patch)
treef88790a80b9403c6afc8d8c4e149293b098ca814 /src
parenta7d03cd5f6ab8884ee2f2ef89c3e514c811c2c9f (diff)
downloadping903-f08fb73d6ab98b26e738d89b59f21c2f72b432a6.tar.gz
ping903-f08fb73d6ab98b26e738d89b59f21c2f72b432a6.tar.bz2
Add missing copylefts; improve docs
Diffstat (limited to 'src')
-rw-r--r--src/defs.h17
-rw-r--r--src/json.c17
-rw-r--r--src/json.h17
-rw-r--r--src/mem.c17
-rw-r--r--src/ping903.conf21
-rw-r--r--src/ping903q.c16
-rw-r--r--src/strsplit.c16
-rw-r--r--src/wrapacl.c18
8 files changed, 135 insertions, 4 deletions
diff --git a/src/defs.h b/src/defs.h
index 3b4dbaf..85918ef 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -1,3 +1,20 @@
+/* This file is part of Ping903
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdarg.h>
#ifndef DEFAULT_ADDRESS
diff --git a/src/json.c b/src/json.c
index d65eb2c..510c7ce 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1,3 +1,20 @@
+/* This file is part of Ping903
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/json.h b/src/json.h
index 81f6db8..5e320a1 100644
--- a/src/json.h
+++ b/src/json.h
@@ -1,3 +1,20 @@
+/* This file is part of Ping903
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdlib.h>
enum json_value_type {
diff --git a/src/mem.c b/src/mem.c
index 744671e..dd607c5 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -1,3 +1,20 @@
+/* This file is part of Ping903
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <config.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/ping903.conf b/src/ping903.conf
index ecc38bf..2f00aeb 100644
--- a/src/ping903.conf
+++ b/src/ping903.conf
@@ -65,3 +65,24 @@
#
#trusted-ip 127.0.0.1
+# It is highly recommended to protect your configuration from unauthorized
+# access. To do so, use the htpasswd(1) utility to create a database of
+# users that are allowed access to configuration. Supposing this database
+# file is /etc/ping903/htpasswd, add the following statement:
+#
+#auth basic * /config /etc/ping903/htpasswd Exopotamie
+#
+# The 'Exopotamie' word in the above statement is the authentication realm
+# name. Replace it with whatever name you deem appropriate.
+
+# To limit write access to the configuration while allowing anybody to read
+# the configuration, use the following
+#
+#auth basic POST /config /etc/ping903/htpasswd Exopotamie
+#auth basic PUT /config
+#auth basic DELETE /config
+
+# For more details about basic authorization, please see the following:
+# ping903.conf(5)
+# ping903q(1), subsection "Basic authorization"
+# ping903.cred(5) \ No newline at end of file
diff --git a/src/ping903q.c b/src/ping903q.c
index a9024c7..6f84250 100644
--- a/src/ping903q.c
+++ b/src/ping903q.c
@@ -1,3 +1,19 @@
+/* This file is part of Ping903
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
+*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/strsplit.c b/src/strsplit.c
index c2e1eac..3846cbf 100644
--- a/src/strsplit.c
+++ b/src/strsplit.c
@@ -1,3 +1,19 @@
+/* This file is part of Ping903
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
+*/
#include <config.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/wrapacl.c b/src/wrapacl.c
index f195f04..db336e4 100644
--- a/src/wrapacl.c
+++ b/src/wrapacl.c
@@ -1,8 +1,18 @@
/* This file is part of Ping903
-Copyright (C) 2020 Sergey Poznyakoff
-License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
-This is free software: you are free to change and redistribute it.
-There is NO WARRANTY, to the extent permitted by law.
+ Copyright (C) 2020 Sergey Poznyakoff
+
+ Ping903 is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Ping903 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Ping903. If not, see <http://www.gnu.org/licenses/>.
*/
#include <tcpd.h>
#include <microhttpd.h>

Return to:

Send suggestions and report system problems to the System administrator.