fix(security): ensure unpairing takes effect without restart (#2365)

This commit is contained in:
ReenigneArcher
2024-04-06 16:39:16 -04:00
committed by GitHub
parent 3c13027a61
commit b7aa8119f1
3 changed files with 13 additions and 4 deletions

View File

@@ -17,6 +17,10 @@ namespace crypto {
X509_STORE_add_cert(x509_store.get(), cert.get());
_certs.emplace_back(std::make_pair(std::move(cert), std::move(x509_store)));
}
void
cert_chain_t::clear() {
_certs.clear();
}
static int
openssl_verify_cb(int ok, X509_STORE_CTX *ctx) {