1
0
mirror of https://github.com/kakwa/uts-server synced 2024-06-20 02:32:59 +02:00
Commit Graph

36 Commits

Author SHA1 Message Date
kakwa
3e511a9cca cleaning duplicate #include of headers 2017-05-07 15:39:44 +02:00
kakwa
6c2fc8ef3e reformat code 2017-04-22 02:33:05 +02:00
kakwa
822b97a035 add handling of NULL strings in logs
replace NULL char * by const char * "<undef>" in log messages
as printf("%s", NULL) behavior is not formalized.
2017-04-22 01:42:58 +02:00
kakwa
8f1a9b1250 code reformat 2016-11-02 18:58:14 +01:00
kakwa
141b8f11f7 exit at the first TS_RESP_CTX initialization fail 2016-09-14 20:15:18 +02:00
kakwa
e55f8c81b6 remove the awkward default_tsa parameter
default_tsa pointing to a specific tsa section doesn't make sense.
removing it.
2016-09-12 22:21:22 +02:00
kakwa
eb2b6ae66e code cleaning an reorganization 2016-09-12 08:39:03 +02:00
kakwa
064f0f8161 fix potential memleak + comments 2016-09-12 08:20:07 +02:00
kakwa
5b3c90bf07 fix relative path loading for https certificate/key/ca file 2016-09-11 23:55:38 +02:00
kakwa
c2d0bdfecb add many comments 2016-09-11 22:01:22 +02:00
kakwa
14852855b9 enabling multi-threads support
as TS_RESP_CTX is not thread safe, this commit implement a pool of
TS_RESP_CTX in which a thread can pick one in a thread safe maner.

* implement a ts_resp_ctx_wrapper containing a TS_RESP_CTX and a
  lock and bool to mark the availability of the TS_RESP_CTX
* implement the get_ctxw to recover a given TS_RESP_CTX in a thread safe
   maner
* adapt the rest of the code to accomodate the new way of doing things
* set the default number of threads to 10 as it's now safe to do so
2016-09-08 23:21:53 +02:00
kakwa
503a09aa58 fix some memory leaks on openssl context cleanup 2016-09-05 20:24:47 +02:00
kakwa
16a34d9c7d implement better query and response logging
* recover the serial
* add the serial in many logs
* add response log
* add timer
2016-09-02 00:36:25 +02:00
kakwa
77cd1dba5c fix the way relative paths are handled and pid file handler
* add a pid file option on command line + implement it
* make the relative path in conf param relative to the configuration
  file directory and not the running directory
2016-09-01 19:43:29 +02:00
kakwa
d8f75a23f5 code reformatting 2016-09-01 08:29:07 +02:00
kakwa
7f8d992f56 fix default log_level, and fix chdir
* the chdir was done after the loading of the conf file, reversing it
* in case log_level is not set, the application would segfault, now
  handled properly (default is info)
* remove logging to the daemon facility
2016-09-01 08:25:28 +02:00
kakwa
d6a7ba86ff passing the launch working dir to the configuration handler
as many configuration paths can be relative to the execution working
directory, this directory is recorded at launch time, and the set_params
function does a chdir(<start work dir>); <load conf>; chdir("/") when
it's called.
2016-09-01 07:59:02 +02:00
kakwa
d91fbe377e implementing a somewhat proper signal handler 2016-08-31 07:57:51 +02:00
kakwa
e5f7732846 fix loglevel determination 2016-08-31 07:35:31 +02:00
kakwa
e51fb0cd94 little code cleaning 2016-08-30 22:54:46 +02:00
kakwa
dba24b7adf multiple modications
* add a function to dump binary as hexa in logs
* implemente the TS response generator
* begin to glue it together
2016-08-29 08:34:59 +02:00
kakwa
862cc77c4f implementing loading of the OIDs 2016-08-27 11:39:53 +02:00
kakwa
bf5435510c use NULL instead of a section (for the conf parser to look for default policy) 2016-08-26 20:59:46 +02:00
kakwa
ec467ba646 general reorganization
* rename the logger function to uts_logger
* add logging to the create_tsctx fucntion
* fix some warning *
2016-08-26 20:39:45 +02:00
kakwa
ed74ddb981 adding creation for the ts context 2016-08-26 01:28:34 +02:00
kakwa
b38b256310 adding the setting of the log level 2016-08-26 00:07:19 +02:00
kakwa
9667d6682c implement configuration parsing + fix
* fix debugging logs to stdout
* add parsing of the different type of parameters
* configure the http server part
2016-08-25 23:04:26 +02:00
kakwa
c5ce562a83 implement the configuration file opening and parsing 2016-08-25 20:14:24 +02:00
kakwa
3acef9333a cosmetic change 2016-08-24 23:45:02 +02:00
kakwa
57d7c6ebc2 better stdout debugging mode 2016-08-24 23:41:55 +02:00
kakwa
63739e858f pass context to the logging function 2016-08-24 23:03:49 +02:00
kakwa
74f07cbd0e big code reorganization:
* split the rfc3161 and the http part
* add a logger function
* add a debugging logger function for the requests
* add a specific handler for rfc3161 request
2016-08-24 22:13:11 +02:00
kakwa
8fc0360824 reformat source code 2016-08-23 19:38:07 +02:00
kakwa
e19413fc51 remove comment 2016-07-01 20:30:32 +02:00
pcarpent
68d590947e fix misplaced static definition 2015-12-17 21:47:19 +01:00
pcarpent
0ba0c0914d begin implementing 2015-12-17 14:09:44 +01:00