mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 04:27:05 +02:00
multiple modications
* add a function to dump binary as hexa in logs * implemente the TS response generator * begin to glue it together
This commit is contained in:
parent
878117a084
commit
dba24b7adf
6 changed files with 159 additions and 152 deletions
|
@ -17,7 +17,6 @@
|
|||
typedef struct {
|
||||
uint64_t query_counter;
|
||||
bool stdout_dbg;
|
||||
TS_RESP_CTX *resp_ctx;
|
||||
int loglevel;
|
||||
const char *http_options[40];
|
||||
TS_RESP_CTX *ts_ctx;
|
||||
|
|
|
@ -29,10 +29,8 @@ 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);
|
||||
static TS_RESP *create_response(CONF *conf, const char *section, char *engine,
|
||||
char *query, char *passin, char *inkey,
|
||||
const EVP_MD *md, char *signer, char *chain,
|
||||
const char *policy);
|
||||
int create_response(rfc3161_context *ct, char *query, 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);
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
|
||||
void skeleton_daemon();
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue