From 33ba9fdf6dcbafa211137b5cccbac08070f87e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 4 Jan 2007 11:31:07 +0000 Subject: [PATCH] (hx509_ca_tbs_set_proxy): allow negative pathLenConstraint to signal no limit git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19681 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/ca.c | 6 ------ 1 file changed, 6 deletions(-) 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;