output error message if maximum ca path length is reached
[strongswan.git] / 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);