Skip to content

Commit

Permalink
Fixed Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
emargolis committed Apr 20, 2022
1 parent 681ac0f commit 4d9c37f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tools/chip-cert/CertUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/tools/chip-cert/Cmd_GenAttCert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions src/tools/chip-cert/chip-cert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d9c37f

Please sign in to comment.