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

adding creation for the ts context

This commit is contained in:
kakwa 2016-08-26 01:28:34 +02:00
parent 6066e93bb2
commit ed74ddb981
7 changed files with 64 additions and 13 deletions

View file

@ -20,6 +20,7 @@ typedef struct {
TS_RESP_CTX *resp_ctx;
int loglevel;
const char *http_options[40];
TS_RESP_CTX *ts_ctx;
} rfc3161_context;
struct rfc3161_option {

View file

@ -14,6 +14,11 @@
/* Name of config entry that defines the OID file. */
#define ENV_OID_FILE "oid_file"
#define B_FORMAT_TEXT 0x8000
#define FORMAT_UNDEF 0
#define FORMAT_TEXT (1 | B_FORMAT_TEXT) /* Generic text */
#define FORMAT_ASN1 4 /* ASN.1/DER */
static ASN1_OBJECT *txt2obj(const char *oid);
/* Reply related functions. */
@ -30,9 +35,4 @@ 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);
#define B_FORMAT_TEXT 0x8000
#define FORMAT_UNDEF 0
#define FORMAT_TEXT (1 | B_FORMAT_TEXT) /* Generic text */
#define FORMAT_ASN1 4 /* ASN.1/DER */
TS_RESP_CTX *create_tsctx(CONF *conf, const char *section, const char *policy);

View file

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