1
0
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:
kakwa 2016-08-26 01:07:06 +02:00
parent a8038f0c9e
commit 6066e93bb2
2 changed files with 1 additions and 28 deletions

View File

@ -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 */

View File

@ -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.
*/ */