1
0
mirror of https://github.com/kakwa/uts-server synced 2024-11-04 17:08:49 +01:00
Commit Graph

138 Commits

Author SHA1 Message Date
kakwa
d483d6faee adding *.pid in gitignore 2016-09-01 19:55: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
7401799cb5 fix ordering between daemonize and get working dir 2016-09-01 08:13:57 +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
fa7dabcb81 source formatting 2016-08-31 07:37:13 +02:00
kakwa
f22c4cfc87 fix ordering between start log and actual start 2016-08-31 07:36:27 +02:00
kakwa
e5f7732846 fix loglevel determination 2016-08-31 07:35:31 +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
3e13c30351 adapt to create_response new API 2016-08-30 23:03:53 +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
e51fb0cd94 little code cleaning 2016-08-30 22:54:46 +02:00
kakwa
bb08375b44 removing the serial file parameter, the serial is now random 2016-08-30 22:51:13 +02:00
kakwa
1e23814dfd some code cleaning 2016-08-29 19:49:39 +02:00
kakwa
026e362bda 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
599e29302f fix the timstamping script 2016-08-29 08:37:34 +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
89e8b773ef removing uneeded newline in debug logs of the http queries 2016-08-27 01:35:57 +02:00
kakwa
2fd1aaafd0 adding some entries in gitignore 2016-08-27 01:34:08 +02:00
kakwa
5816f07dc1 better extension for the timestamp script 2016-08-27 01:33:48 +02:00
kakwa
be745d8594 fix create_tsa_certs if not run from its directory 2016-08-27 01:27:15 +02:00
kakwa
594ee4f6fc fix test configuration 2016-08-27 01:25:37 +02:00
kakwa
48819b9695 fix create_tsa_certs script 2016-08-27 01:06:48 +02:00
kakwa
e6e9faf184 better logging for OpenSSL errors 2016-08-27 01:04:19 +02:00
kakwa
3cb7f920fe new way to create certs for testing 2016-08-27 01:03:02 +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
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
a2007f36dd fix default configuration 2016-08-26 19:31:12 +02:00
kakwa
f78c039203 adding a DEBUG option in cmake to compile wth debug flags 2016-08-26 19:28:12 +02:00
kakwa
c8f30485fe change path to certificats in test conf 2016-08-26 19:14:48 +02:00
kakwa
1754457a5b adding a test pki 2016-08-26 19:11:17 +02:00
kakwa
92c86f7ea0 change default directories for tsa pki 2016-08-26 19:03:01 +02:00
kakwa
2ed72b9a80 cosmetic change in default configuration file 2016-08-26 08:27:17 +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
a8038f0c9e remove unused header 2016-08-26 00:40:32 +02:00
kakwa
b38b256310 adding the setting of the log level 2016-08-26 00:07:19 +02:00
kakwa
45e5248e56 adding possible values for syslog level 2016-08-26 00:06:56 +02:00
kakwa
37dbc3b486 adding civetweb as a submodule 2016-08-25 23:38:04 +02:00
kakwa
cb39220901 remove empty dir 2016-08-25 23:37:16 +02:00
kakwa
2545223c71 remove ini parser as we will use the openssl configuratio parser 2016-08-25 23:34:57 +02:00
kakwa
cfc43274b3 adding comment on configuration options 2016-08-25 23:33:41 +02:00