#177 在用户访问的过程中,获取未见到过、可信的中间证书
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user