mirror of
https://github.com/kakwa/uts-server
synced 2025-01-10 05:34:29 +01:00
adding a function to free the ssl context
This commit is contained in:
parent
b3b3014873
commit
5f1c5de4ad
@ -39,3 +39,4 @@ TS_RESP_CTX *create_tsctx(rfc3161_context *ct, CONF *conf, const char *section,
|
|||||||
const char *policy);
|
const char *policy);
|
||||||
int add_oid_section(rfc3161_context *ct, CONF *conf);
|
int add_oid_section(rfc3161_context *ct, CONF *conf);
|
||||||
void init_ssl();
|
void init_ssl();
|
||||||
|
void free_ssl();
|
||||||
|
@ -206,6 +206,7 @@ int http_server_start(char *conffile, char *conf_wd, bool stdout_dbg) {
|
|||||||
// Stop the server.
|
// Stop the server.
|
||||||
mg_stop(ctx);
|
mg_stop(ctx);
|
||||||
free(ct);
|
free(ct);
|
||||||
|
free_ssl();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,10 @@ void init_ssl(){
|
|||||||
ERR_load_TS_strings();
|
ERR_load_TS_strings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void free_ssl() {
|
||||||
|
ERR_free_strings();
|
||||||
|
}
|
||||||
|
|
||||||
TS_RESP_CTX *create_tsctx(rfc3161_context *ct, CONF *conf, const char *section,
|
TS_RESP_CTX *create_tsctx(rfc3161_context *ct, CONF *conf, const char *section,
|
||||||
const char *policy) {
|
const char *policy) {
|
||||||
unsigned long err_code;
|
unsigned long err_code;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user