mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 20:47:09 +02:00
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...
This commit is contained in:
parent
4907f03f2f
commit
d54c661eef
2 changed files with 77 additions and 113 deletions
|
@ -29,8 +29,9 @@ static int reply_command(CONF *conf, char *section, char *engine, char *query,
|
|||
char *in, int token_in, char *out, int token_out,
|
||||
int text);
|
||||
static TS_RESP *read_PKCS7(BIO *in_bio);
|
||||
int create_response(rfc3161_context *ct, char *query, TS_RESP_CTX *resp_ctx,
|
||||
int *resp_size, unsigned char **resp);
|
||||
int create_response(rfc3161_context *ct, char *query, int query_len,
|
||||
TS_RESP_CTX *resp_ctx, int *resp_size,
|
||||
unsigned char **resp);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue