add pathlen only for CA certificates

This commit is contained in:
Christian Hohnstaedt 2010-08-06 19:12:07 +02:00
parent f572eb3898
commit 1ee65645a3

View File

@ -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());
}