diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-11-12 08:30:46 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-11-13 08:03:32 +0100 |
commit | b7d0b49f5708b55e24aabb719e26ce5ec8628161 (patch) | |
tree | c01b10951b04ad8b78a060e5a089bc72243dfba9 /cui | |
parent | 4bf2b13647030d4e5a44d6a23d5570aeea70c333 (diff) |
Related tdf#118581 Use subject name, not issuer name for signature line
And map the gpg user also the the subject name
Change-Id: I1db7b93b6bfc82304924d6ef90db18ff4f97e13c
Reviewed-on: https://gerrit.libreoffice.org/63278
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SignSignatureLineDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/SignSignatureLineDialog.cxx b/cui/source/dialogs/SignSignatureLineDialog.cxx index a3230eedcfb2..d35c5db3f98b 100644 --- a/cui/source/dialogs/SignSignatureLineDialog.cxx +++ b/cui/source/dialogs/SignSignatureLineDialog.cxx @@ -141,7 +141,7 @@ IMPL_LINK_NOARG(SignSignatureLineDialog, chooseCertificate, weld::Button&, void) { m_xSelectedCertifate = xSignCertificate; m_xBtnChooseCertificate->set_label( - xmlsec::GetContentPart(xSignCertificate->getIssuerName())); + xmlsec::GetContentPart(xSignCertificate->getSubjectName())); } ValidateFields(); } @@ -180,7 +180,7 @@ SignSignatureLineDialog::getSignedGraphic(bool bValid) aSvgImage = aSvgImage.replaceAll("[SIGNATURE]", getCDataString(m_xEditName->get_text())); OUString aIssuerLine = CuiResId(RID_SVXSTR_SIGNATURELINE_SIGNED_BY) - .replaceFirst("%1", xmlsec::GetContentPart(m_xSelectedCertifate->getIssuerName())); + .replaceFirst("%1", xmlsec::GetContentPart(m_xSelectedCertifate->getSubjectName())); aSvgImage = aSvgImage.replaceAll("[SIGNED_BY]", getCDataString(aIssuerLine)); if (bValid) aSvgImage = aSvgImage.replaceAll("[INVALID_SIGNATURE]", ""); |