aboutsummaryrefslogtreecommitdiff
path: root/examples/inspect
AgeCommit message (Collapse)AuthorFiles
2020-03-06Version 0.5v0.5Sergey Poznyakoff1
* NEWS: Update. * configure.ac: Raise version number. * examples/lib/LWP/Ping903.pm: Remove. * examples/README: Mention Mangemanche. Remove references to lib/LWP/Ping903.pm * examples/dbload: Revert to LWP::UserAgent * examples/inspect: Likewise. * examples/ipadd: Likewise. * examples/ipdel: Likewise.
2020-03-03inspect: remove left-over grepSergey Poznyakoff1
2020-02-29Improve authorization support.Sergey Poznyakoff1
* examples/inspect: Special handling for "auth" objects. Print the rest of arrays as here documents. * src/json.c (json_object_filter): new function. * src/json.h (json_object_filter): new proto. * src/ping903.c (try_auth): Don't format HTTP responses if ret_val is NULL. (ept_ident, ept_config): Check individual object attributes using try_auth. Remove those not allowed by auth ACL. (cf_auth): Support for CF_SERIALIZE.
2020-02-28Implement here-document syntax in configuration file.Sergey Poznyakoff1
Here-document is supported for ip-list and trusted-ip statements. * doc/ping903.conf.5: Document the here-document syntax. * NEWS: Likewise. * examples/inspect: Mention that the created output is a valid configuration file. * src/config.c: Support for here-document. * src/defs.h: Mark printf-like functions as such. * src/ping903.h (CF_HEREDOC_OPCODE): New data type. (cf_callback_arg): Add heredoc member. (STMT_T_HEREDOC): New statement type. * src/remoteip.c (cf_trusted_ip_heredoc): New function. * src/ping903.c: Fix format strings and unused variables. * src/ping903q.c: Likewise. * src/pinger.c: Likewise.
2020-02-27Add missing copylefts; improve docsSergey Poznyakoff1
2020-02-27Implememt client-side basic authSergey Poznyakoff1
* lib/Makefile.am: Add base64.c * lib/base64.c: New file. * lib/basicauth.c: Move base64 support to a separate source. * lib/basicauth.h (base64_encode,base64_decode): New protos. * src/strsplit.c: New file. * src/Makefile.am (libping903_a_SOURCES): Add strsplit.c * src/defs.h (CRED_FILE_NAME): New macro. (ecalloc,strsplit,argcv_free): New proto. * src/mem.c (ecalloc): New function. * src/ping903.c (strsplit): Remove. (cf_auth): Use modified strsplit. * src/ping903q.c (http_query): Attempt to authenticate if basic auth is required. * examples/lib/LWP/Ping903.pm: New file. * examples/dbload: Use LWP::Ping903 * examples/inspect: Likewise. * examples/ipadd: Likewise. * examples/ipdel: Likewise.
2020-02-25Add example interface scriptsSergey Poznyakoff1
* examples/dbload: New file. * examples/inspect: New file. * examples/ipadd: New file. * examples/ipdel: New file.

Return to:

Send suggestions and report system problems to the System administrator.