#85 修复ssl、http业务层中的编译警告。
This commit is contained in:
@@ -38,7 +38,6 @@ struct ssl_trusted_cert_storage
|
||||
BIO *bio=NULL;
|
||||
X509* x=NULL;
|
||||
X509_CRL* x_crl=NULL;
|
||||
int error;
|
||||
|
||||
bio=BIO_new_file(filename, "r");
|
||||
if(bio==NULL)
|
||||
@@ -79,7 +78,7 @@ struct ssl_trusted_cert_storage
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int filter_pem_fn(const struct dirent * ent)
|
||||
UNUSED static int filter_pem_fn(const struct dirent * ent)
|
||||
{
|
||||
const char* fn_suffix=".pem";
|
||||
if(strlen(ent->d_name)< strlen(fn_suffix))
|
||||
@@ -152,7 +151,7 @@ static X509_STORE* _X509_store_create(const char* pem_bundle, const char* pem_di
|
||||
|
||||
static MESA_htable_handle _create_mesa_htable(void)
|
||||
{
|
||||
int ret=0;
|
||||
UNUSED int ret=0;
|
||||
MESA_htable_handle htable = MESA_htable_born();
|
||||
ret = __wrapper_MESA_htable_set_opt_int(htable, MHO_SCREEN_PRINT_CTRL, 0);
|
||||
ret = __wrapper_MESA_htable_set_opt_int(htable, MHO_THREAD_SAFE, 0);
|
||||
@@ -172,7 +171,6 @@ static MESA_htable_handle _create_mesa_htable(void)
|
||||
struct ssl_trusted_cert_storage* ssl_trusted_cert_storage_create(const char* pem_bundle,
|
||||
const char* pem_dir, struct cert_store_param* param)
|
||||
{
|
||||
int ret=0;
|
||||
struct ssl_trusted_cert_storage* storage=ALLOC(struct ssl_trusted_cert_storage, 1);
|
||||
storage->param=*param;
|
||||
storage->effective_store=_X509_store_create(pem_bundle, pem_dir, &(storage->param));
|
||||
|
||||
Reference in New Issue
Block a user