Some documentation corrections
[strongswan.git] / src / libstrongswan / credentials / cert_validator.h
index 1f192e1..00e30d7 100644 (file)
@@ -15,7 +15,7 @@
 
 /**
  * @defgroup cert_validator cert_validator
- * @{ @ingroup ccredentials
+ * @{ @ingroup credentials
  */
 
 #ifndef CERT_VALIDATOR_H_
@@ -23,6 +23,8 @@
 
 typedef struct cert_validator_t cert_validator_t;
 
+#include <library.h>
+
 /**
  * Certificate validator interface.
  *
@@ -37,13 +39,14 @@ struct cert_validator_t {
         *
         * @param subject               subject certificate to check
         * @param issuer                issuer of subject
-        * @param online                wheter to do online revocation checking
-        * @param pathlen               the current length of the path up to the root CA
+        * @param online                whether to do online revocation checking
+        * @param pathlen               the current length of the path bottom-up
+        * @param anchor                is issuer trusted root anchor
         * @param auth                  container for resulting authentication info
         */
        bool (*validate)(cert_validator_t *this, certificate_t *subject,
-                                        certificate_t *issuer, bool online, int pathlen,
-                                        auth_cfg_t *auth);
+                                        certificate_t *issuer, bool online, u_int pathlen,
+                                        bool anchor, auth_cfg_t *auth);
 };
 
 #endif /** CERT_VALIDATOR_H_ @}*/