mark embedded parsing in debug mode

This commit is contained in:
Andreas Steffen
2009-10-02 20:54:15 +02:00
parent ec0abe4ab5
commit 0aa5cea248
2 changed files with 4 additions and 0 deletions
@@ -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;