mirror of
https://github.com/kakwa/uts-server
synced 2024-11-11 12:08:54 +01:00
clean load_config declaration
This commit is contained in:
parent
a8038f0c9e
commit
6066e93bb2
@ -15,7 +15,6 @@
|
|||||||
#define ENV_OID_FILE "oid_file"
|
#define ENV_OID_FILE "oid_file"
|
||||||
|
|
||||||
static ASN1_OBJECT *txt2obj(const char *oid);
|
static ASN1_OBJECT *txt2obj(const char *oid);
|
||||||
static CONF *load_config_file(const char *configfile);
|
|
||||||
|
|
||||||
/* Reply related functions. */
|
/* Reply related functions. */
|
||||||
static int reply_command(CONF *conf, char *section, char *engine, char *query,
|
static int reply_command(CONF *conf, char *section, char *engine, char *query,
|
||||||
@ -32,6 +31,7 @@ static ASN1_INTEGER *serial_cb(TS_RESP_CTX *ctx, void *data);
|
|||||||
static ASN1_INTEGER *next_serial(const char *serialfile);
|
static ASN1_INTEGER *next_serial(const char *serialfile);
|
||||||
static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial);
|
static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial);
|
||||||
|
|
||||||
|
|
||||||
#define B_FORMAT_TEXT 0x8000
|
#define B_FORMAT_TEXT 0x8000
|
||||||
#define FORMAT_UNDEF 0
|
#define FORMAT_UNDEF 0
|
||||||
#define FORMAT_TEXT (1 | B_FORMAT_TEXT) /* Generic text */
|
#define FORMAT_TEXT (1 | B_FORMAT_TEXT) /* Generic text */
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#define ENV_OID_FILE "oid_file"
|
#define ENV_OID_FILE "oid_file"
|
||||||
|
|
||||||
static ASN1_OBJECT *txt2obj(const char *oid);
|
static ASN1_OBJECT *txt2obj(const char *oid);
|
||||||
static CONF *load_config_file(const char *configfile);
|
|
||||||
|
|
||||||
/* Reply related functions. */
|
/* Reply related functions. */
|
||||||
static int reply_command(CONF *conf, char *section, char *engine, char *query,
|
static int reply_command(CONF *conf, char *section, char *engine, char *query,
|
||||||
@ -82,32 +81,6 @@ static ASN1_OBJECT *txt2obj(const char *oid) {
|
|||||||
return oid_obj;
|
return oid_obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
// static CONF *load_config_file(const char *configfile)
|
|
||||||
//{
|
|
||||||
// CONF *conf = app_load_config(configfile);
|
|
||||||
//
|
|
||||||
// if (conf != NULL) {
|
|
||||||
// const char *p;
|
|
||||||
//
|
|
||||||
//// BIO_printf(bio_err, "Using configuration from %s\n",
|
|
||||||
/// configfile);
|
|
||||||
// p = NCONF_get_string(conf, NULL, ENV_OID_FILE);
|
|
||||||
// if (p != NULL) {
|
|
||||||
// BIO *oid_bio = BIO_new_file(p, "r");
|
|
||||||
// if (!oid_bio)
|
|
||||||
// ERR_print_errors(bio_err);
|
|
||||||
// else {
|
|
||||||
// OBJ_create_objects(oid_bio);
|
|
||||||
// BIO_free_all(oid_bio);
|
|
||||||
// }
|
|
||||||
// } else
|
|
||||||
// ERR_clear_error();
|
|
||||||
// if (!add_oid_section(conf))
|
|
||||||
// ERR_print_errors(bio_err);
|
|
||||||
// }
|
|
||||||
// return conf;
|
|
||||||
//}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reply-related method definitions.
|
* Reply-related method definitions.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user