mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Document in the comment if a public key has been completed by an imported private one
This commit is contained in:
parent
f1cf3aeab1
commit
5ef451ee91
@ -122,10 +122,13 @@ pki_base* db_key::insert(pki_base *item)
|
||||
tr("The key is already in the database as:\n'%1'\nand is not going to be imported").arg(oldkey->getIntName()));
|
||||
delete(lkey);
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
XCA_INFO(
|
||||
tr("The database already contains the public part of the imported key as\n'%1\nand will be completed by the new, private part of the key").arg(oldkey->getIntName()));
|
||||
lkey->setComment(oldkey->getComment() + "\n" +
|
||||
tr("Extending public key from %1 by %2")
|
||||
.arg(oldkey->getInsertionDate().toPretty())
|
||||
.arg(lkey->getIntName()));
|
||||
lkey->setIntName(oldkey->getIntName());
|
||||
deletePKI(index(oldkey->row(), 0, QModelIndex()));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user