certificate_t.has_subject() matches for certificate serialNumber
This commit is contained in:
parent
9de6a7a85c
commit
ed1c430334
|
@ -327,6 +327,10 @@ METHOD(certificate_t, has_subject, id_match_t,
|
|||
{
|
||||
return ID_MATCH_PERFECT;
|
||||
}
|
||||
if (chunk_equals(get_serial(this), encoding))
|
||||
{
|
||||
return ID_MATCH_PERFECT;
|
||||
}
|
||||
}
|
||||
best = this->subject->matches(this->subject, subject);
|
||||
enumerator = create_subjectAltName_enumerator(this);
|
||||
|
|
|
@ -1547,6 +1547,10 @@ METHOD(certificate_t, has_subject, id_match_t,
|
|||
{
|
||||
return ID_MATCH_PERFECT;
|
||||
}
|
||||
if (chunk_equals(this->serialNumber, encoding))
|
||||
{
|
||||
return ID_MATCH_PERFECT;
|
||||
}
|
||||
}
|
||||
best = this->subject->matches(this->subject, subject);
|
||||
enumerator = this->subjectAltNames->create_enumerator(this->subjectAltNames);
|
||||
|
|
Loading…
Reference in New Issue