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

adding a function to free the ssl context

This commit is contained in:
kakwa 2016-09-02 08:00:04 +02:00
parent 627f9c5973
commit d104de63d5
3 changed files with 6 additions and 0 deletions

View file

@ -206,6 +206,7 @@ int http_server_start(char *conffile, char *conf_wd, bool stdout_dbg) {
// Stop the server.
mg_stop(ctx);
free(ct);
free_ssl();
return 0;
}

View file

@ -73,6 +73,10 @@ void init_ssl(){
ERR_load_TS_strings();
}
void free_ssl() {
ERR_free_strings();
}
TS_RESP_CTX *create_tsctx(rfc3161_context *ct, CONF *conf, const char *section,
const char *policy) {
unsigned long err_code;