Fix x509 analyzer to correctly return ecdsa as the key_type for ecdsa certs.

Returned dsa so far.

Bug found by Michał Purzyński
This commit is contained in:
Johanna Amann 2014-11-25 11:18:07 -08:00
parent 5436faed69
commit cd21b7f130
5 changed files with 25 additions and 1 deletions

View file

@ -147,7 +147,7 @@ RecordVal* file_analysis::X509::ParseCertificate(X509Val* cert_val)
#ifndef OPENSSL_NO_EC
else if ( pkey->type == EVP_PKEY_EC )
{
pX509Cert->Assign(8, new StringVal("dsa"));
pX509Cert->Assign(8, new StringVal("ecdsa"));
pX509Cert->Assign(11, KeyCurve(pkey));
}
#endif