1
0
Fork 0
mirror of https://github.com/kakwa/uts-server synced 2025-07-04 04:27:05 +02:00

general reorganization

* rename the logger function to uts_logger
* add logging to the create_tsctx fucntion
* fix some warning *
This commit is contained in:
kakwa 2016-08-26 20:39:45 +02:00
parent a2007f36dd
commit ec467ba646
8 changed files with 50 additions and 60 deletions

View file

@ -1,5 +1,4 @@
#include <stdbool.h>
#include "utils.h"
#include "rfc3161.h"
int http_server_start(char *conffile, bool stdout_dbg);

View file

@ -10,6 +10,7 @@
#include <openssl/rand.h>
#include <openssl/ts.h>
#include <openssl/bn.h>
#include "context.h"
/* Name of config entry that defines the OID file. */
#define ENV_OID_FILE "oid_file"
@ -35,4 +36,5 @@ static TS_RESP *create_response(CONF *conf, const char *section, char *engine,
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);
TS_RESP_CTX *create_tsctx(CONF *conf, const char *section, const char *policy);
TS_RESP_CTX *create_tsctx(rfc3161_context *ct, CONF *conf, const char *section,
const char *policy);

View file

@ -1,6 +1,5 @@
#include "context.h"
#include "rfc3161.h"
void skeleton_daemon();
void logger(rfc3161_context *ct, int priority, char *fmt, ...);
void uts_logger(rfc3161_context *ct, int priority, char *fmt, ...);
int set_params(rfc3161_context *ct, char *conf_file);