From 1ee65645a378442e7f66dc612c3b01aeef20efc1 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Fri, 6 Aug 2010 19:12:07 +0200 Subject: [PATCH] add pathlen only for CA certificates --- widgets/NewX509_ext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/NewX509_ext.cpp b/widgets/NewX509_ext.cpp index 640192f2..21a70e76 100644 --- a/widgets/NewX509_ext.cpp +++ b/widgets/NewX509_ext.cpp @@ -28,7 +28,9 @@ x509v3ext NewX509::getBasicConstraints() if (bcCritical->isChecked()) cont << "critical"; cont << ca[basicCA->currentIndex()]; - if (!basicPath->text().isEmpty()) { + if (basicCA->currentIndex() == 1 && + !basicPath->text().isEmpty()) + { cont << QString("pathlen:") + QString::number(basicPath->text().toInt()); }