diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-11-04 23:37:15 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-11-04 23:37:15 +0100 |
commit | 4c68a85a75f23a33623687847dcc5dcd2d761ff5 (patch) | |
tree | b32fe600a59d87bd70aed24fe0b87309d679ae77 /src/libstrongswan | |
parent | fef3b0b7fde0dc2e67c1ff790e3e968d721f2412 (diff) | |
download | strongswan-4c68a85a75f23a33623687847dcc5dcd2d761ff5.tar.bz2 strongswan-4c68a85a75f23a33623687847dcc5dcd2d761ff5.tar.xz |
implemented path length constraint checkinf for IKEv2
Diffstat (limited to 'src/libstrongswan')
-rw-r--r-- | src/libstrongswan/credentials/certificates/x509.h | 3 | ||||
-rw-r--r-- | src/libstrongswan/plugins/x509/x509_cert.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/credentials/certificates/x509.h b/src/libstrongswan/credentials/certificates/x509.h index 6d3419546..a671ce220 100644 --- a/src/libstrongswan/credentials/certificates/x509.h +++ b/src/libstrongswan/credentials/certificates/x509.h @@ -24,7 +24,8 @@ #include <utils/enumerator.h> #include <credentials/certificates/certificate.h> -#define NO_PATH_LEN_CONSTRAINT -1 +#define X509_NO_PATH_LEN_CONSTRAINT -1 +#define X509_MAX_PATH_LEN 7 typedef struct x509_t x509_t; typedef enum x509_flag_t x509_flag_t; diff --git a/src/libstrongswan/plugins/x509/x509_cert.c b/src/libstrongswan/plugins/x509/x509_cert.c index 0147e78c6..bc1afad33 100644 --- a/src/libstrongswan/plugins/x509/x509_cert.c +++ b/src/libstrongswan/plugins/x509/x509_cert.c @@ -1238,7 +1238,7 @@ static private_x509_cert_t* create_empty(void) this->subjectKeyIdentifier = chunk_empty; this->authKeyIdentifier = chunk_empty; this->authKeySerialNumber = chunk_empty; - this->pathLenConstraint = NO_PATH_LEN_CONSTRAINT; + this->pathLenConstraint = X509_NO_PATH_LEN_CONSTRAINT; this->algorithm = 0; this->signature = chunk_empty; this->flags = 0; |