#177 在用户访问的过程中,获取未见到过、可信的中间证书

This commit is contained in:
luwenpeng
2019-10-23 10:29:30 +08:00
parent 7476f84fa1
commit 96a13b6a51
4 changed files with 77 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
#include "ssl_trusted_cert_storage.h"
#include "ssl_fetch_cert.h"
#include "MESA_htable_aux.h"
#include <MESA/MESA_htable.h>
@@ -401,8 +402,13 @@ int ssl_trusted_cert_storage_verify_conn(struct ssl_trusted_cert_storage* storag
ret=1;
}
// case cert verify success
if (ret == 1) {
ssl_fetch_trusted_cert_from_chain(cert_chain, storage->effective_store);
}
X509_STORE_CTX_free(ctx);
pthread_rwlock_unlock(&(storage->rwlock));
pthread_rwlock_unlock(&(storage->rwlock));
return ret;
}