Olof hagsand
69eaf98913
Remove extra lines
2024-12-05 17:35:05 +01:00
Olof hagsand
c1ea72bcb3
Restconf: Support for list of media in Accept:
...
Restconf: Better RFC compliance with Accept errors: 406 vs 415
Fixed: [RESTCONF exit on cert error + complex accept](https://github.com/clicon/clixon/issues/551 )
2024-09-02 16:37:11 +02:00
Olof hagsand
25e1bade8f
RESTCONF notification for HTTP/2 native mode
2024-06-06 17:04:53 +02:00
Olof hagsand
e2140aed10
Formatting and debugs
2024-05-28 18:50:07 +02:00
Olof hagsand
1336a4ccfb
RESTCONF notification for native mode
2024-05-19 17:44:24 +02:00
Olof hagsand
62a4b5feff
Restconf native+http/1 + tls
...
Added command-line timeout -t <sec> to restconf
Example: Added programmable timeout to backend example
Test: updated for fcgi and native using internal timeouts
2024-05-13 23:13:05 +02:00
Olof hagsand
a1badc312e
Fixes after coverity static analysis
2024-03-03 17:05:36 +01:00
Olof hagsand
4e3bd6fbdd
Symbolic and combined debug names in cmd-line of all applications
...
New debug levels: BACKEND, CLI, NETCONF,RESTCONF, SNMP, STREAM
2024-02-02 11:54:12 +01:00
Olof hagsand
121cd3ed2e
Debug: ensured all exit logs are on the format: retval:%s
2024-01-24 10:03:28 +01:00
Philip Prindeville
cf2e27b43d
Drop __FUNCTION__ from clixon_debug() calls
2024-01-11 17:29:37 +01:00
Philip Prindeville
0ec1e0a686
Discriminate APP debugging
2024-01-10 20:06:38 +01:00
Olof hagsand
24a4991ec8
Restructured error,debug anf log API
...
Renamed functions clicon->clixon, replaced global variables w access functions
Unified clicon_netconf_error with clixon_err()
2023-12-18 08:29:14 +01:00
Olof hagsand
e9c5287c36
Debug: improved debug level 2 with socket-description, also for notification
2023-11-01 13:48:41 +01:00
Olof hagsand
62348fc9c7
C-style update: Unified comment, retvals in order, remove trailing spaces
...
Changed function name for `clicon_debug` functions
2023-10-23 09:58:13 +02:00
Olof hagsand
5d1c6b5759
Preparations for 6.2.0
...
Openssl 3.0 and autoconf 2.71
2023-04-29 16:23:54 +02:00
Olof hagsand
54dc7a9a57
Fixed RESTCONF race conditions on SSL_shutdown sslerr ZERO_RETURN appears occasionally and exist.
2023-04-25 16:14:14 +02:00
Olof hagsand
c56d5aa44e
Fixed: RESTCONF: some client cert failure leads to restconf exit
...
Instead close and continue
2023-04-18 10:10:52 +02:00
Olof hagsand
1f5df800bc
Restconf: Added fallback mechanism for non-ALPN HTTPS
...
* Set `CLICON_RESTCONF_NOALPN_DEFAULT` to `http/2` or `http/1.1`
* For http/1 or http/2 only, that will be the default if no ALPN is set.
2023-03-03 16:05:31 +01:00
Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
2ce77fdd5c
Restconf: reset body buffer
...
Test: replace http2 with http1.1 instead of appending it
2022-09-23 14:48:55 +02:00
Olof hagsand
e0ba90207b
Restconf callhome idle timer fix
...
Leak in restconf http/1 data path: when multiple packets in same connection.
2022-09-22 15:52:04 +02:00
Olof hagsand
76c1566d00
Restconf callhome: idle-timeout activity timer
2022-09-14 10:43:34 +02:00
Olof hagsand
c1e4595949
Refactoring of RESTCONF/TLS close code
...
Single closing function: restconf_close_ssl_socket
Added constant HTTP_ON_HTTPS_REPLY for http request on https socket
2022-09-13 23:01:19 +02:00
Olof hagsand
71fc85af0b
restconf: removed try to reply on http on https error, fails on openssl 3
...
test: pipe background restconf to /dev/null
2022-09-02 19:44:53 +02:00
Olof hagsand
ba9b313295
Restconf callhome: idle-timeout for periodic callhome
2022-08-22 11:27:02 +02:00
Olof hagsand
b748d68912
RESTCONF callhome, periodic and persistent connection-types, multiple clients
2022-08-18 16:38:24 +02:00
Olof hagsand
7e783952eb
Restconf callhome: Added YANG connection-type, test: added NACM
2022-08-12 15:05:18 +02:00
Olof hagsand
7d8ddf7697
Restconf RFC8071 call-home first working prototype
2022-07-31 09:59:52 +02:00
Olof hagsand
0b16797a45
* Added: [Feature Request: Log SSL events]( https://github.com/clicon/clixon/issues/331 )
...
* Added syslog NOTICE on failed user certs
2022-06-08 13:22:38 +02:00
Olof hagsand
50fcedafac
Make socket read (SSL_read) error handling more resilient: log and continue instead of exit
2022-05-16 19:34:00 +02:00
Olof hagsand
7b099a5685
Fixed Restconf nghttp2 client EPIPE crash
2022-05-13 13:34:06 +02:00
Olof hagsand
90474d1523
Fixed: A long TLS+HTTP/2 request such as by a browser causing block of other requests.
...
Test: Disabled privileges test if clixon_restconf started with -r
2022-05-02 10:31:53 +02:00
Olof hagsand
9690e0d8f2
* Fixed: HTTP/1 multiple write requests in single session appended data between writes, eg PUT+PUT.
2022-03-28 22:55:43 +02:00
Olof hagsand
12695c5d87
* Unit test ifdef for restconf http1 parser
...
* test: fix cli-union test
2022-02-17 09:16:01 +01:00
Olof hagsand
61661e6940
Restconf and http/1 modifications for http/1-only
2022-02-15 15:48:37 +01:00
Olof hagsand
c006c6189d
- Fixed restconf http/1 only compile errors
2022-02-15 09:31:32 +01:00
Olof hagsand
82e0d907b3
restconf typo, left minimal debug recv buffer in place
2022-02-15 08:52:57 +01:00
Olof hagsand
12dddfd794
* RESTCONF,
...
* Refactored http1 code
* fixed some http1/http2 only compile issues
2022-02-14 21:03:23 +01:00
Olof hagsand
10886a31a2
* Fixed inefficient RESTCONF HTTP/1 read body by appending bufs instead of re-parsing
...
* Fixed: http1 by mistake included in fcgi build
* Test: restconf perf test uses restconf for initial setup instead of netconf
2022-02-12 21:54:22 +01:00
Olof hagsand
abaf122bfc
RESTCONF HTTP/1 Incomplete header handling
2022-02-09 12:39:28 +01:00
Olof hagsand
4aa74fa1d8
* Restconf native http/1, first working version
...
* Renamed files clixon_http -> restconf_http
* Split main file into restconf_native.c
* Remove all evhtp code and libevhtp/libevent dependency
2022-02-08 18:59:47 +01:00
Olof hagsand
dadf4a778a
* HTTP/1 native parser as part of the RESTCONF client
...
* Fixed memory error in opendir/readdir in clicon_file_dirent
* Remove MAXPATH in parsers
* New string-del function
2022-02-08 16:59:08 +01:00
Olof hagsand
77b4468eb3
Updated copyright statements to 2022
2022-01-18 16:36:00 +01:00
Olof hagsand
b70e22096e
- Pagination: enabled LIST_PAGINATION and remobved constant
...
- Changed logic on how to find clixon_restconf in pseudo plugin
- Removed ==== in constants to avoid conflict with git merge
- Remove assert
- Added fuzzing for netconf
2021-09-23 13:33:26 +02:00
Olof hagsand
55377786c1
Fix tests for http/1 and http/2 only respectively
2021-09-21 21:23:33 +02:00
Olof hagsand
aed7dbfd8b
- Restconf error: added special case for translating from netconf invalid-value to 400 vs 404
...
- Added media to restconf sanity checks, such as bad client cert error
2021-08-27 15:12:50 +02:00
Olof hagsand
c5da97e2a4
restconf memleaks
2021-06-24 13:09:18 +02:00
Olof hagsand
4f513385e9
- Restconf native http/1 to http/2 upgrade (non-tls)
2021-06-13 12:43:19 +02:00
Olof hagsand
84f5762ab5
* Most tests work with HTTP/2 support using nghttp2
...
* except non-ssl http/1->/2 upgrade
* Restconf: ensure HEAD method works everywhere GET does.
2021-06-08 20:53:43 +02:00