Update x509_util.cc
This commit is contained in:
parent
8a4cfc0130
commit
6363ab1fde
1 changed files with 3 additions and 5 deletions
|
@ -198,7 +198,7 @@ bool GetTLSServerEndPointChannelBinding(const X509Certificate& certificate,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
absl::optional<SignatureAlgorithm> signature_algorithm =
|
absl::optional<SignatureAlgorithm> signature_algorithm =
|
||||||
ParseSignatureAlgorithm(signature_algorithm_tlv, nullptr);
|
ParseSignatureAlgorithm(signature_algorithm_tlv);
|
||||||
if (!signature_algorithm) {
|
if (!signature_algorithm) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -385,8 +385,7 @@ bssl::UniquePtr<CRYPTO_BUFFER> CreateCryptoBuffer(
|
||||||
CRYPTO_BUFFER_new(data.data(), data.size(), GetBufferPool()));
|
CRYPTO_BUFFER_new(data.data(), data.size(), GetBufferPool()));
|
||||||
}
|
}
|
||||||
|
|
||||||
bssl::UniquePtr<CRYPTO_BUFFER> CreateCryptoBuffer(
|
bssl::UniquePtr<CRYPTO_BUFFER> CreateCryptoBuffer(base::StringPiece data) {
|
||||||
const base::StringPiece& data) {
|
|
||||||
return bssl::UniquePtr<CRYPTO_BUFFER>(
|
return bssl::UniquePtr<CRYPTO_BUFFER>(
|
||||||
CRYPTO_BUFFER_new(reinterpret_cast<const uint8_t*>(data.data()),
|
CRYPTO_BUFFER_new(reinterpret_cast<const uint8_t*>(data.data()),
|
||||||
data.size(), GetBufferPool()));
|
data.size(), GetBufferPool()));
|
||||||
|
@ -528,8 +527,7 @@ bool HasRsaPkcs1Sha1Signature(const CRYPTO_BUFFER* cert_buffer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
absl::optional<SignatureAlgorithm> signature_algorithm =
|
absl::optional<SignatureAlgorithm> signature_algorithm =
|
||||||
ParseSignatureAlgorithm(signature_algorithm_tlv,
|
ParseSignatureAlgorithm(signature_algorithm_tlv);
|
||||||
/*errors=*/nullptr);
|
|
||||||
|
|
||||||
return signature_algorithm &&
|
return signature_algorithm &&
|
||||||
*signature_algorithm == SignatureAlgorithm::kRsaPkcs1Sha1;
|
*signature_algorithm == SignatureAlgorithm::kRsaPkcs1Sha1;
|
||||||
|
|
Loading…
Reference in a new issue