* Made a separate Clixon datastore XML/JSON top-level symbol
* Replaces the hardcoded "config" keyword. * Implemented by a compile-time option called `DATASTORE_TOP_SYMBOL` option in clixon_custom.h * Tests: added endtest to all tests. Removed all premature exits if BE=0
This commit is contained in:
parent
2ab90d847b
commit
b7991d9b39
132 changed files with 939 additions and 628 deletions
|
|
@ -33,7 +33,10 @@
|
|||
|
||||
***** END LICENSE BLOCK *****
|
||||
|
||||
*
|
||||
* HTTP2 + OPENSSL client integrated with clixon events
|
||||
* Ubuntu package:
|
||||
* apt install libnghttp2-dev
|
||||
* Example run: clixon_util_ssl -H nghttp2.org
|
||||
*/
|
||||
|
||||
|
|
@ -122,9 +125,8 @@ send_callback(nghttp2_session *session,
|
|||
{
|
||||
session_data *sd = (session_data*)user_data;
|
||||
int ret;
|
||||
|
||||
|
||||
clicon_debug(1, "%s %d:", __FUNCTION__, length);
|
||||
clicon_debug(1, "%s %zu:", __FUNCTION__, length);
|
||||
#if 0
|
||||
{
|
||||
int i;
|
||||
|
|
@ -475,6 +477,7 @@ main(int argc,
|
|||
int ret;
|
||||
nghttp2_session *session = NULL;
|
||||
session_data *sd = NULL;
|
||||
int dbg = 0;
|
||||
|
||||
/* In the startup, logs to stderr & debug flag set later */
|
||||
clicon_log_init(__FILE__, LOG_INFO, CLICON_LOG_STDERR);
|
||||
|
|
@ -487,7 +490,7 @@ main(int argc,
|
|||
usage(argv[0]);
|
||||
break;
|
||||
case 'D':
|
||||
if (sscanf(optarg, "%d", &debug) != 1)
|
||||
if (sscanf(optarg, "%d", &dbg) != 1)
|
||||
usage(argv[0]);
|
||||
break;
|
||||
case 'H': /* hostname */
|
||||
|
|
@ -501,6 +504,7 @@ main(int argc,
|
|||
fprintf(stderr, "-H <hostname> is mandatory\n");
|
||||
usage(argv[0]);
|
||||
}
|
||||
clicon_debug_init(dbg, NULL);
|
||||
SSL_library_init();
|
||||
if ((ctx = InitCTX()) == NULL)
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue