mirror of
https://github.com/kakwa/uts-server
synced 2025-01-05 19:33:33 +01:00
clean load_config declaration
This commit is contained in:
parent
0cf267f51e
commit
a420c0dd5c
@ -15,7 +15,6 @@
|
||||
#define ENV_OID_FILE "oid_file"
|
||||
|
||||
static ASN1_OBJECT *txt2obj(const char *oid);
|
||||
static CONF *load_config_file(const char *configfile);
|
||||
|
||||
/* Reply related functions. */
|
||||
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 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 */
|
||||
|
@ -25,7 +25,6 @@
|
||||
#define ENV_OID_FILE "oid_file"
|
||||
|
||||
static ASN1_OBJECT *txt2obj(const char *oid);
|
||||
static CONF *load_config_file(const char *configfile);
|
||||
|
||||
/* Reply related functions. */
|
||||
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;
|
||||
}
|
||||
|
||||
// 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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user