Replacing the OVERRIDE with override and FINAL with final in /src/crypto
This step is a giant search and replace for OVERRIDE and FINAL to replace them with their lowercase versions. BUG=417463 Review URL: https://codereview.chromium.org/632653002 Cr-Commit-Position: refs/heads/master@{#298360}
This commit is contained in:
@@ -17,10 +17,10 @@ class ECSignatureCreatorImpl : public ECSignatureCreator {
|
|||||||
|
|
||||||
virtual bool Sign(const uint8* data,
|
virtual bool Sign(const uint8* data,
|
||||||
int data_len,
|
int data_len,
|
||||||
std::vector<uint8>* signature) OVERRIDE;
|
std::vector<uint8>* signature) override;
|
||||||
|
|
||||||
virtual bool DecodeSignature(const std::vector<uint8>& der_sig,
|
virtual bool DecodeSignature(const std::vector<uint8>& der_sig,
|
||||||
std::vector<uint8>* out_raw_sig) OVERRIDE;
|
std::vector<uint8>* out_raw_sig) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ECPrivateKey* key_;
|
ECPrivateKey* key_;
|
||||||
|
@@ -40,9 +40,9 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
|||||||
const char* accountName,
|
const char* accountName,
|
||||||
UInt32* passwordLength,
|
UInt32* passwordLength,
|
||||||
void** passwordData,
|
void** passwordData,
|
||||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
SecKeychainItemRef* itemRef) const override;
|
||||||
virtual OSStatus ItemFreeContent(SecKeychainAttributeList* attrList,
|
virtual OSStatus ItemFreeContent(SecKeychainAttributeList* attrList,
|
||||||
void* data) const OVERRIDE;
|
void* data) const override;
|
||||||
virtual OSStatus AddGenericPassword(
|
virtual OSStatus AddGenericPassword(
|
||||||
SecKeychainRef keychain,
|
SecKeychainRef keychain,
|
||||||
UInt32 serviceNameLength,
|
UInt32 serviceNameLength,
|
||||||
@@ -51,7 +51,7 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
|||||||
const char* accountName,
|
const char* accountName,
|
||||||
UInt32 passwordLength,
|
UInt32 passwordLength,
|
||||||
const void* passwordData,
|
const void* passwordData,
|
||||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
SecKeychainItemRef* itemRef) const override;
|
||||||
|
|
||||||
#if !defined(OS_IOS)
|
#if !defined(OS_IOS)
|
||||||
virtual OSStatus ItemCopyAttributesAndData(
|
virtual OSStatus ItemCopyAttributesAndData(
|
||||||
@@ -60,23 +60,23 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
|||||||
SecItemClass* itemClass,
|
SecItemClass* itemClass,
|
||||||
SecKeychainAttributeList** attrList,
|
SecKeychainAttributeList** attrList,
|
||||||
UInt32* length,
|
UInt32* length,
|
||||||
void** outData) const OVERRIDE;
|
void** outData) const override;
|
||||||
// Pass "fail_me" as the data to get errSecAuthFailed.
|
// Pass "fail_me" as the data to get errSecAuthFailed.
|
||||||
virtual OSStatus ItemModifyAttributesAndData(
|
virtual OSStatus ItemModifyAttributesAndData(
|
||||||
SecKeychainItemRef itemRef,
|
SecKeychainItemRef itemRef,
|
||||||
const SecKeychainAttributeList* attrList,
|
const SecKeychainAttributeList* attrList,
|
||||||
UInt32 length,
|
UInt32 length,
|
||||||
const void* data) const OVERRIDE;
|
const void* data) const override;
|
||||||
virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList* attrList,
|
virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList* attrList,
|
||||||
void* data) const OVERRIDE;
|
void* data) const override;
|
||||||
virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const OVERRIDE;
|
virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const override;
|
||||||
virtual OSStatus SearchCreateFromAttributes(
|
virtual OSStatus SearchCreateFromAttributes(
|
||||||
CFTypeRef keychainOrArray,
|
CFTypeRef keychainOrArray,
|
||||||
SecItemClass itemClass,
|
SecItemClass itemClass,
|
||||||
const SecKeychainAttributeList* attrList,
|
const SecKeychainAttributeList* attrList,
|
||||||
SecKeychainSearchRef* searchRef) const OVERRIDE;
|
SecKeychainSearchRef* searchRef) const override;
|
||||||
virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef,
|
virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef,
|
||||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
SecKeychainItemRef* itemRef) const override;
|
||||||
// Pass "some.domain.com" as the serverName to get errSecDuplicateItem.
|
// Pass "some.domain.com" as the serverName to get errSecDuplicateItem.
|
||||||
virtual OSStatus AddInternetPassword(
|
virtual OSStatus AddInternetPassword(
|
||||||
SecKeychainRef keychain,
|
SecKeychainRef keychain,
|
||||||
@@ -91,8 +91,8 @@ class CRYPTO_EXPORT MockAppleKeychain : public AppleKeychain {
|
|||||||
SecAuthenticationType authenticationType,
|
SecAuthenticationType authenticationType,
|
||||||
UInt32 passwordLength,
|
UInt32 passwordLength,
|
||||||
const void* passwordData,
|
const void* passwordData,
|
||||||
SecKeychainItemRef* itemRef) const OVERRIDE;
|
SecKeychainItemRef* itemRef) const override;
|
||||||
virtual void Free(CFTypeRef ref) const OVERRIDE;
|
virtual void Free(CFTypeRef ref) const override;
|
||||||
|
|
||||||
// Return the counts of objects returned by Create/Copy functions but never
|
// Return the counts of objects returned by Create/Copy functions but never
|
||||||
// Free'd as they should have been.
|
// Free'd as they should have been.
|
||||||
|
@@ -28,17 +28,17 @@ class SecureHashSHA256NSS : public SecureHash {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SecureHash implementation:
|
// SecureHash implementation:
|
||||||
virtual void Update(const void* input, size_t len) OVERRIDE {
|
virtual void Update(const void* input, size_t len) override {
|
||||||
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
|
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Finish(void* output, size_t len) OVERRIDE {
|
virtual void Finish(void* output, size_t len) override {
|
||||||
SHA256_End(&ctx_, static_cast<unsigned char*>(output), NULL,
|
SHA256_End(&ctx_, static_cast<unsigned char*>(output), NULL,
|
||||||
static_cast<unsigned int>(len));
|
static_cast<unsigned int>(len));
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Serialize(Pickle* pickle) OVERRIDE;
|
virtual bool Serialize(Pickle* pickle) override;
|
||||||
virtual bool Deserialize(PickleIterator* data_iterator) OVERRIDE;
|
virtual bool Deserialize(PickleIterator* data_iterator) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SHA256Context ctx_;
|
SHA256Context ctx_;
|
||||||
|
@@ -30,18 +30,18 @@ class SecureHashSHA256OpenSSL : public SecureHash {
|
|||||||
OPENSSL_cleanse(&ctx_, sizeof(ctx_));
|
OPENSSL_cleanse(&ctx_, sizeof(ctx_));
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Update(const void* input, size_t len) OVERRIDE {
|
virtual void Update(const void* input, size_t len) override {
|
||||||
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
|
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Finish(void* output, size_t len) OVERRIDE {
|
virtual void Finish(void* output, size_t len) override {
|
||||||
ScopedOpenSSLSafeSizeBuffer<SHA256_DIGEST_LENGTH> result(
|
ScopedOpenSSLSafeSizeBuffer<SHA256_DIGEST_LENGTH> result(
|
||||||
static_cast<unsigned char*>(output), len);
|
static_cast<unsigned char*>(output), len);
|
||||||
SHA256_Final(result.safe_buffer(), &ctx_);
|
SHA256_Final(result.safe_buffer(), &ctx_);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Serialize(Pickle* pickle) OVERRIDE;
|
virtual bool Serialize(Pickle* pickle) override;
|
||||||
virtual bool Deserialize(PickleIterator* data_iterator) OVERRIDE;
|
virtual bool Deserialize(PickleIterator* data_iterator) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SHA256_CTX ctx_;
|
SHA256_CTX ctx_;
|
||||||
|
Reference in New Issue
Block a user