[hopefully] fixed pathlen problem on ARM platforms

This commit is contained in:
Andreas Steffen
2011-02-10 15:51:18 +01:00
parent afddd6a7e8
commit d390b3b901
7 changed files with 39 additions and 28 deletions
@@ -45,7 +45,7 @@ struct cert_validator_t {
* @param auth container for resulting authentication info
*/
bool (*validate)(cert_validator_t *this, certificate_t *subject,
certificate_t *issuer, bool online, int pathlen,
certificate_t *issuer, bool online, u_int pathlen,
bool anchor, auth_cfg_t *auth);
};
@@ -24,7 +24,8 @@
#include <utils/enumerator.h>
#include <credentials/certificates/certificate.h>
#define X509_NO_CONSTRAINT -1
/* constraints are currently restricted to the range 0..127 */
#define X509_NO_CONSTRAINT 255
typedef struct x509_t x509_t;
typedef struct x509_cert_policy_t x509_cert_policy_t;
@@ -150,7 +151,7 @@ struct x509_t {
* @param type type of constraint to get
* @return constraint, X509_NO_CONSTRAINT if none found
*/
int (*get_constraint)(x509_t *this, x509_constraint_t type);
u_int (*get_constraint)(x509_t *this, x509_constraint_t type);
/**
* Create an enumerator over all subjectAltNames.