implemented path length constraint checkinf for IKEv2
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user