diff --git a/src/cert_session.c b/src/cert_session.c index 6f3bc60..4d06445 100644 --- a/src/cert_session.c +++ b/src/cert_session.c @@ -596,8 +596,6 @@ X509 *x509_create_cert(char *host, int days) mkcert(&x509, &pkey, 1024, 0, host, days); - CRYPTO_cleanup_all_ex_data(); - EVP_PKEY_free(pkey); return x509; @@ -784,7 +782,7 @@ int x509_privatekey_init(EVP_PKEY **key, X509 **root) goto pkey_free; } - unsigned char buf[SG_DATA_SIZE * 2],*p; + unsigned char buf[SG_DATA_SIZE],*p; fp = fopen(key_path, "r"); if (NULL == fp){ mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Failed to open file(%s)", key_path); @@ -803,7 +801,7 @@ int x509_privatekey_init(EVP_PKEY **key, X509 **root) mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Failed to open file(%s)", cert_path); goto pkey_free; } - len = fread(buf, 1, SG_DATA_SIZE * 2, fp); + len = fread(buf, 1, SG_DATA_SIZE, fp); fclose(fp); p = buf; @@ -860,6 +858,7 @@ sample_decode_uri(const char *uri, char *host, if (vl) *valid = atoi(vl); + evhttp_clear_headers(¶ms); free(decoded_uri); finish: diff --git a/src/rt/rt_common.h b/src/rt/rt_common.h index 133e5e4..058c43e 100644 --- a/src/rt/rt_common.h +++ b/src/rt/rt_common.h @@ -1,10 +1,3 @@ -/* - * rt_common.h - * Created by fengweihao - * 30 May, 2018 - * Func: System timer control interface - */ - #ifndef __RT_COMMON_H__ #define __RT_COMMON_H__ diff --git a/src/rt/rt_sync.h b/src/rt/rt_sync.h index 7fec285..b8fc272 100644 --- a/src/rt/rt_sync.h +++ b/src/rt/rt_sync.h @@ -1,12 +1,3 @@ -/* -* sync.h -* Created by Tsihang -* 1 June, 2015 -* Func: System startup synchronous operation interface of SPASR -* Personal.Q -*/ - - #ifndef __SYSTEM_SYNC_H__ #define __SYSTEM_SYNC_H__