diff --git a/lib/hx509/ca.c b/lib/hx509/ca.c index edf252a6f..63f9b7dbe 100644 --- a/lib/hx509/ca.c +++ b/lib/hx509/ca.c @@ -126,12 +126,6 @@ hx509_ca_tbs_set_proxy(hx509_context context, hx509_ca_tbs tbs, int pathLenConstraint) { - if (pathLenConstraint < 0) { - hx509_set_error_string(context, 0, EINVAL, - "PathLenConstraint must be larger then zero " - "for proxy certificates"); - return EINVAL; - } tbs->flags.proxy = 1; tbs->pathLenConstraint = pathLenConstraint; return 0;