output error message if maximum ca path length is reached
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 31 Mar 2008 20:42:57 +0000 (20:42 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 31 Mar 2008 20:42:57 +0000 (20:42 -0000)
src/charon/credentials/credential_manager.c

index 6160fd6..c6c10d3 100644 (file)
@@ -938,6 +938,10 @@ static bool verify_trust_chain(private_credential_manager_t *this,
                }
        }
        current->destroy(current);
+       if (level > MAX_CA_LEVELS)
+       {
+               DBG1(DBG_CFG, "maximum ca path length of %d levels reached", level);
+       }
        if (trusted)
        {
                result->merge(result, auth);