Skip to content

Commit 7a53c59

Browse files
committed
Fixed cert serial validation (make lower case)
1 parent 4f7951d commit 7a53c59

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ajantv2/src/ntv2nubaccess.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,8 +1751,9 @@ bool NTV2PluginLoader::validate (void)
17511751
ouCert(subjectInfo.valueForKey(kNTV2PluginX500AttrKey_OrganizationalUnitName));
17521752
const string myVers(NTV2RPCBase::ShortSDKVersion()),
17531753
plVers(regInfo.valueForKey(kNTV2PluginRegInfoKey_NTV2SDKVersion));
1754-
const string fingerprint(mDict.valueForKey(kNTV2PluginInfoKey_Fingerprint)),
1755-
ajaFingerprint("70:1a:37:93:fa:4f:34:30:58:55:51:0c:01:4e:45:7c:be:5b:41:62");
1754+
const string ajaFingerprint("70:1a:37:93:fa:4f:34:30:58:55:51:0c:01:4e:45:7c:be:5b:41:62");
1755+
string fingerprint(mDict.valueForKey(kNTV2PluginInfoKey_Fingerprint));
1756+
aja::lower(fingerprint); // since ajaFingerprint is lower case
17561757
if (onReg != onCert)
17571758
{ P_FAIL("Vendor name (key='" << kNTV2PluginRegInfoKey_Vendor << "') \"" << onReg << "\" from plugin \""
17581759
<< pluginPath() << "\" doesn't match organization name (key='" << kNTV2PluginX500AttrKey_OrganizationName

0 commit comments

Comments
 (0)