mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
add pathlen only for CA certificates
This commit is contained in:
parent
f572eb3898
commit
1ee65645a3
@ -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());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user