1
0
mirror of https://github.com/kakwa/uts-server synced 2025-03-13 11:51:07 +01:00

46 Commits

Author SHA1 Message Date
kakwa
fe51b57adc format code 2016-12-04 13:39:27 +01:00
kakwa
5384ccd45e adding a few #define to handle multiple openssl API version 2016-12-04 13:38:09 +01:00
kakwa
86ece83f51 adapt code to newer openssl API 2016-12-04 13:18:33 +01:00
kakwa
8f1a9b1250 code reformat 2016-11-02 18:58:14 +01: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
2f866957d3 fix the order of some strings in some log messages 2016-09-11 22:09:39 +02:00
kakwa
a70f2fe754 the max serial size is 160 bits, not 160 bytes... 2016-09-11 22:04:03 +02:00
kakwa
c2d0bdfecb add many comments 2016-09-11 22:01:22 +02:00
kakwa
633bbcccad more consistent log messages 2016-09-09 08:26:31 +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
29defe1610 switching success log to debug 2016-09-08 21:17:35 +02:00
kakwa
1135fefb79 better handling of error codes 2016-09-05 23:20:29 +02:00
kakwa
bf2fc90e30 fix segfault in case of a bad request
* if the request is wrong, the request handler tried to access the
none allocated serial, which crashes the process.
2016-09-05 23:09:00 +02:00
kakwa
3d020cf26f fix more memleaks 2016-09-05 20:48:50 +02:00
kakwa
503a09aa58 fix some memory leaks on openssl context cleanup 2016-09-05 20:24:47 +02:00
kakwa
ef05f393de some code cleaning 2016-09-02 08:18:48 +02:00
kakwa
668067e057 fix another memleak 2016-09-02 08:12:38 +02:00
kakwa
5f1c5de4ad adding a function to free the ssl context 2016-09-02 08:00:04 +02:00
kakwa
1454ea4880 better memory management and extraction of the openssl initialization 2016-09-02 07:42:23 +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
fa7dabcb81 source formatting 2016-08-31 07:37:13 +02:00
kakwa
962bbeda72 code cleaning 2016-08-31 00:13:25 +02:00
kakwa
e02740a6cf first (kind of) working version \o/ 2016-08-31 00:09:17 +02:00
kakwa
901c186069 multiple modification on ts response creation
* pass the size of the query to the create_response function
* implement a serial generator based on random numbers
* fix the creation of the bio for the query content
* add logging for the create_reponse

TODO:
* some REAL memory cleaning...
2016-08-30 22:55:25 +02:00
kakwa
1e23814dfd some code cleaning 2016-08-29 19:49:39 +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
878117a084 better cleaning in case of an initialization error 2016-08-28 14:23:42 +02:00
kakwa
f7cf646e61 add openssl initialization 2016-08-28 14:16:50 +02:00
kakwa
862cc77c4f implementing loading of the OIDs 2016-08-27 11:39:53 +02:00
kakwa
e6e9faf184 better logging for OpenSSL errors 2016-08-27 01:04:19 +02:00
kakwa
42a427e617 adding log on openssl error 2016-08-27 00:24:22 +02:00
kakwa
c8c71b233a add logging for the ts conf parsing 2016-08-26 21:00:40 +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
6066e93bb2 clean load_config declaration 2016-08-26 01:07:06 +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
0bbf2a3cf0 fix content type 2016-08-23 20:16:54 +02:00
kakwa
ca00d8c6c6 change ts app code to read query from memory 2016-08-23 20:12:09 +02:00
kakwa
8fc0360824 reformat source code 2016-08-23 19:38:07 +02:00
kakwa
19c39b1a0f adding copyright notice 2016-08-22 22:28:06 +02:00
kakwa
768578b8ea including the glue for timestamping 2016-08-22 22:26:23 +02:00
kakwa
950c9fc26c use civetweb 2016-08-19 00:04:13 +02:00
pcarpent
e14e9af3ed begin implementing the http part 2015-12-18 00:29:43 +01:00
pcarpent
0ba0c0914d begin implementing 2015-12-17 14:09:44 +01:00
pcarpent
18e30a81ae init project skeleton 2015-12-16 23:11:08 +01:00