]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
mark embedded parsing in debug mode
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 2 Oct 2009 18:54:15 +0000 (20:54 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 2 Oct 2009 18:54:15 +0000 (20:54 +0200)
src/libstrongswan/plugins/pkcs1/pkcs1_builder.c
src/libstrongswan/plugins/x509/x509_cert.c

index 81730e5eac5c35a625cdd1a8ceb79cd3213f4101..fbd35e830b403081d563b359863a5168f3d46787 100644 (file)
@@ -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;
                }
        }
index d672605f5d6dafb0aff4f3360de4078492e54eb6..5472611eead7e9b5a622855f289fb0df12dcd478 100644 (file)
@@ -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;