diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/defs.h | 17 | ||||
-rw-r--r-- | src/json.c | 17 | ||||
-rw-r--r-- | src/json.h | 17 | ||||
-rw-r--r-- | src/mem.c | 17 | ||||
-rw-r--r-- | src/ping903.conf | 21 | ||||
-rw-r--r-- | src/ping903q.c | 16 | ||||
-rw-r--r-- | src/strsplit.c | 16 | ||||
-rw-r--r-- | src/wrapacl.c | 18 |
8 files changed, 135 insertions, 4 deletions
@@ -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 @@ -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> @@ -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 { @@ -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> |