Merge "Fix OpenSSL Builds"
This commit is contained in:
committed by
Android (Google) Code Review
commit
712784055b
@@ -336,11 +336,12 @@ bool ExtractExtensionValueFromCertificate(const std::string& cert,
|
|||||||
STACK_OF(X509)* certs = pkcs7->d.sign->cert;
|
STACK_OF(X509)* certs = pkcs7->d.sign->cert;
|
||||||
|
|
||||||
// Find the desired certificate from the stack.
|
// Find the desired certificate from the stack.
|
||||||
if (cert_index >= static_cast<size_t>(sk_X509_num(certs))) {
|
const size_t num_certs = static_cast<size_t>(sk_X509_num(certs));
|
||||||
|
if (cert_index >= num_certs) {
|
||||||
LOGE(
|
LOGE(
|
||||||
"Unexpected number of certificates in chain: "
|
"Unexpected number of certificates in chain: "
|
||||||
"count = %zu, minimum = %zu",
|
"count = %zu, minimum = %zu",
|
||||||
sk_X509_num(certs), cert_index + 1);
|
num_certs, cert_index + 1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user