(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
This commit is contained in:
Love Hörnquist Åstrand
2007-01-04 11:31:07 +00:00
parent a03b0ce550
commit 33ba9fdf6d

View File

@@ -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;