mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 20:47:09 +02:00
implement better query and response logging
* recover the serial * add the serial in many logs * add response log * add timer
This commit is contained in:
parent
b3ade78f4d
commit
21e2a4de85
5 changed files with 111 additions and 28 deletions
|
@ -31,7 +31,7 @@ static int reply_command(CONF *conf, char *section, char *engine, char *query,
|
|||
static TS_RESP *read_PKCS7(BIO *in_bio);
|
||||
int create_response(rfc3161_context *ct, char *query, int query_len,
|
||||
TS_RESP_CTX *resp_ctx, size_t *resp_size,
|
||||
unsigned char **resp);
|
||||
unsigned char **resp, char **serial_id);
|
||||
static ASN1_INTEGER *serial_cb(TS_RESP_CTX *ctx, void *data);
|
||||
static ASN1_INTEGER *next_serial(const char *serialfile);
|
||||
static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial);
|
||||
|
|
|
@ -7,5 +7,6 @@ void uts_logger(rfc3161_context *ct, int priority, char *fmt, ...);
|
|||
void log_hex(rfc3161_context *ct, int priority, char *id,
|
||||
unsigned char *content, int content_length);
|
||||
int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd);
|
||||
static char *rand_string(char *str, size_t size);
|
||||
int g_uts_sig_up;
|
||||
int g_uts_sig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue