diff --git a/src/tools/chip-cert/CertUtils.cpp b/src/tools/chip-cert/CertUtils.cpp index ede07039f700f0..dbba8e482901ae 100644 --- a/src/tools/chip-cert/CertUtils.cpp +++ b/src/tools/chip-cert/CertUtils.cpp @@ -1015,7 +1015,7 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje VerifyTrueOrExit(res); } - if (certConfig.IsExtensionextSubjectAltNamePresent()) + if (certConfig.IsExtensionSubjectAltNamePresent()) { // Add optional Subject Alternative Name extentsion. res = AddExtension(newCert, NID_subject_alt_name, "DNS:test.com"); diff --git a/src/tools/chip-cert/Cmd_GenAttCert.cpp b/src/tools/chip-cert/Cmd_GenAttCert.cpp index f7f9d6d4e26f4f..737849eaf4aeb8 100644 --- a/src/tools/chip-cert/Cmd_GenAttCert.cpp +++ b/src/tools/chip-cert/Cmd_GenAttCert.cpp @@ -392,7 +392,7 @@ bool HandleOption(const char * progName, OptionSet * optSet, int id, const char } else if (strcmp(arg, "ext-subject-alt-name") == 0) { - gCertConfig.SetExtensionextSubjectAltNamePresent(); + gCertConfig.SetExtensionSubjectAltNamePresent(); } else if (strcmp(arg, "no-error") != 0) { diff --git a/src/tools/chip-cert/chip-cert.h b/src/tools/chip-cert/chip-cert.h index 3b25036d37e4ed..d51d3b89291d25 100644 --- a/src/tools/chip-cert/chip-cert.h +++ b/src/tools/chip-cert/chip-cert.h @@ -150,7 +150,7 @@ class AttCertStructConfig void SetExtensionSKIDMissing() { mFlags.Set(CertErrorFlags::kExtSKIDMissing); } void SetExtensionExtendedKeyUsagePresent() { mFlags.Set(CertErrorFlags::kExtExtendedKeyUsage); } void SetExtensionAuthorityInfoAccessPresent() { mFlags.Set(CertErrorFlags::kExtAuthorityInfoAccess); } - void SetExtensionextSubjectAltNamePresent() { mFlags.Set(CertErrorFlags::kExtSubjectAltName); } + void SetExtensionSubjectAltNamePresent() { mFlags.Set(CertErrorFlags::kExtSubjectAltName); } bool IsErrorTestCaseEnabled() { return mEnabled; } int GetCertVersion() { return (mEnabled && mFlags.Has(CertErrorFlags::kCertVersion)) ? 1 : 2; } @@ -206,7 +206,7 @@ class AttCertStructConfig bool IsExtensionSKIDPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtSKIDMissing)); } bool IsExtensionExtendedKeyUsagePresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtExtendedKeyUsage)); } bool IsExtensionAuthorityInfoAccessPresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtAuthorityInfoAccess)); } - bool IsExtensionextSubjectAltNamePresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtSubjectAltName)); } + bool IsExtensionSubjectAltNamePresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtSubjectAltName)); } private: enum class CertErrorFlags : uint32_t