Slightly renamed X509_NO_PATH_LEN_CONSTRAINT to use it for PolicyConstraints, too
This commit is contained in:
@@ -59,7 +59,7 @@ static int issue()
|
||||
identification_t *id = NULL, *crl_issuer = NULL;;
|
||||
linked_list_t *san, *cdps, *ocsp, *permitted, *excluded, *policies, *mappings;
|
||||
int lifetime = 1095;
|
||||
int pathlen = X509_NO_PATH_LEN_CONSTRAINT;
|
||||
int pathlen = X509_NO_CONSTRAINT;
|
||||
chunk_t serial = chunk_empty;
|
||||
chunk_t encoding = chunk_empty;
|
||||
time_t not_before, not_after;
|
||||
|
||||
@@ -176,7 +176,7 @@ static void print_x509(x509_t *x509)
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
len = x509->get_pathLenConstraint(x509);
|
||||
if (len != X509_NO_PATH_LEN_CONSTRAINT)
|
||||
if (len != X509_NO_CONSTRAINT)
|
||||
{
|
||||
printf("pathlen: %d\n", len);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ static int self()
|
||||
identification_t *id = NULL;
|
||||
linked_list_t *san, *ocsp, *permitted, *excluded, *policies, *mappings;
|
||||
int lifetime = 1095;
|
||||
int pathlen = X509_NO_PATH_LEN_CONSTRAINT;
|
||||
int pathlen = X509_NO_CONSTRAINT;
|
||||
chunk_t serial = chunk_empty;
|
||||
chunk_t encoding = chunk_empty;
|
||||
time_t not_before, not_after;
|
||||
|
||||
Reference in New Issue
Block a user