1
0
mirror of https://github.com/kakwa/uts-server synced 2024-12-04 15:05:54 +01:00
Commit Graph

307 Commits

Author SHA1 Message Date
kakwa
a3e550c394 fix link to openssl project 2016-09-06 09:03:54 +02:00
kakwa
63b21a1f56 better README file 2016-09-06 09:02:50 +02:00
kakwa
d2d2648e7e better help in command line 2016-09-06 08:51:48 +02:00
kakwa
d49f24c061 a little temporary fix concerning the lack of multithread support 2016-09-05 23:24:41 +02:00
kakwa
225c2d3a7c better handling of error codes 2016-09-05 23:20:29 +02:00
kakwa
8af08d6482 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
6d11e0d2ae fixing memory leak on query data 2016-09-05 22:37:03 +02:00
kakwa
0fc57d5396 fix more memleaks 2016-09-05 20:48:50 +02:00
kakwa
236f0cf04c fix some memory leaks on openssl context cleanup 2016-09-05 20:24:47 +02:00
kakwa
aa97d4699d fix memleak 2016-09-05 20:06:15 +02:00
kakwa
49870f87b7 some code cleaning 2016-09-02 08:18:48 +02:00
kakwa
6727b81bd2 fix another memleak 2016-09-02 08:12:38 +02:00
kakwa
d104de63d5 adding a function to free the ssl context 2016-09-02 08:00:04 +02:00
kakwa
627f9c5973 just to be safe, strlen + 1 allocated 2016-09-02 07:43:39 +02:00
kakwa
92b289e100 better memory management and extraction of the openssl initialization 2016-09-02 07:42:23 +02:00
kakwa
21e2a4de85 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
b3ade78f4d use only one thread (concurrency issues for now) 2016-09-02 00:35:39 +02:00
kakwa
e732e7cb8e fix command line in case the pid file is not set 2016-09-01 21:10:26 +02:00
kakwa
b00bdbc5f9 fixing test configuration to new relative path policy 2016-09-01 19:55:55 +02:00
kakwa
7d255757ba adding *.pid in gitignore 2016-09-01 19:55:25 +02:00
kakwa
a3f65c7050 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
5cbcdc4a1d code reformatting 2016-09-01 08:29:07 +02:00
kakwa
9a05006d1e 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
43984fd1b5 fix ordering between daemonize and get working dir 2016-09-01 08:13:57 +02:00
kakwa
6e687f2fe2 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
93ead7ee99 implementing a somewhat proper signal handler 2016-08-31 07:57:51 +02:00
kakwa
f3a950dc41 source formatting 2016-08-31 07:37:13 +02:00
kakwa
ce19f74858 fix ordering between start log and actual start 2016-08-31 07:36:27 +02:00
kakwa
ee5870509a fix loglevel determination 2016-08-31 07:35:31 +02:00
kakwa
aca650fa6f code cleaning 2016-08-31 00:13:25 +02:00
kakwa
f5d3f66031 first (kind of) working version \o/ 2016-08-31 00:09:17 +02:00
kakwa
00c91df4cf adapt to create_response new API 2016-08-30 23:03:53 +02:00
kakwa
d54c661eef 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
4907f03f2f little code cleaning 2016-08-30 22:54:46 +02:00
kakwa
a0d09ebe7b removing the serial file parameter, the serial is now random 2016-08-30 22:51:13 +02:00
kakwa
b41233fd50 some code cleaning 2016-08-29 19:49:39 +02:00
kakwa
62c9b56584 modification in timestamp-file.sh script
* implement a -r switch to force removal of an existing tsr
* implement a way to kind of check is the response looks like a TSR
2016-08-29 19:36:56 +02:00
kakwa
15bb7d9792 fix the timstamping script 2016-08-29 08:37:34 +02:00
kakwa
75dcc97e12 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
5ab6bc4325 better cleaning in case of an initialization error 2016-08-28 14:23:42 +02:00
kakwa
418f4ba1d3 add openssl initialization 2016-08-28 14:16:50 +02:00
kakwa
f40732e857 implementing loading of the OIDs 2016-08-27 11:39:53 +02:00
kakwa
439b08a014 removing uneeded newline in debug logs of the http queries 2016-08-27 01:35:57 +02:00
kakwa
c625fbd3ca adding some entries in gitignore 2016-08-27 01:34:08 +02:00
kakwa
bf33d5cee0 better extension for the timestamp script 2016-08-27 01:33:48 +02:00
kakwa
734f78469f fix create_tsa_certs if not run from its directory 2016-08-27 01:27:15 +02:00
kakwa
131065afde fix test configuration 2016-08-27 01:25:37 +02:00
kakwa
b3a50883f9 fix create_tsa_certs script 2016-08-27 01:06:48 +02:00
kakwa
2201aefe1f better logging for OpenSSL errors 2016-08-27 01:04:19 +02:00
kakwa
5fd07a352a new way to create certs for testing 2016-08-27 01:03:02 +02:00