mark embedded parsing in debug mode
This commit is contained in:
@@ -81,8 +81,10 @@ static public_key_t *parse_public_key(chunk_t blob)
|
||||
/* skip initial bit string octet defining 0 unused bits */
|
||||
object = chunk_skip(object, 1);
|
||||
}
|
||||
DBG2("-- > --");
|
||||
key = lib->creds->create(lib->creds, CRED_PUBLIC_KEY, type,
|
||||
BUILD_BLOB_ASN1_DER, object, BUILD_END);
|
||||
DBG2("-- < --");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -737,8 +737,10 @@ static bool parse_certificate(private_x509_cert_t *this)
|
||||
DBG2(" '%Y'", this->subject);
|
||||
break;
|
||||
case X509_OBJ_SUBJECT_PUBLIC_KEY_INFO:
|
||||
DBG2("-- > --");
|
||||
this->public_key = lib->creds->create(lib->creds, CRED_PUBLIC_KEY,
|
||||
KEY_ANY, BUILD_BLOB_ASN1_DER, object, BUILD_END);
|
||||
DBG2("-- < --");
|
||||
if (this->public_key == NULL)
|
||||
{
|
||||
goto end;
|
||||
|
||||
Reference in New Issue
Block a user