diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-02 20:54:15 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-02 20:54:15 +0200 |
commit | 0aa5cea2484b4bf0aa6ef5f84f1594208a152aa5 (patch) | |
tree | 4a24fad7f9abff4e460e2eae16090375edc72ab2 | |
parent | ec0abe4ab567b76ef3c7ef26bdf761753bb3a87f (diff) | |
download | strongswan-0aa5cea2484b4bf0aa6ef5f84f1594208a152aa5.tar.bz2 strongswan-0aa5cea2484b4bf0aa6ef5f84f1594208a152aa5.tar.xz |
mark embedded parsing in debug mode
-rw-r--r-- | src/libstrongswan/plugins/pkcs1/pkcs1_builder.c | 2 | ||||
-rw-r--r-- | src/libstrongswan/plugins/x509/x509_cert.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c b/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c index 81730e5ea..fbd35e830 100644 --- a/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c +++ b/src/libstrongswan/plugins/pkcs1/pkcs1_builder.c @@ -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; } } diff --git a/src/libstrongswan/plugins/x509/x509_cert.c b/src/libstrongswan/plugins/x509/x509_cert.c index d672605f5..5472611ee 100644 --- a/src/libstrongswan/plugins/x509/x509_cert.c +++ b/src/libstrongswan/plugins/x509/x509_cert.c @@ -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; |