diff options
-rw-r--r-- | cui/source/dialogs/SignSignatureLineDialog.cxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/gpg/CertificateImpl.cxx | 4 |
2 files changed, 4 insertions, 4 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]", ""); diff --git a/xmlsecurity/source/gpg/CertificateImpl.cxx b/xmlsecurity/source/gpg/CertificateImpl.cxx index 4a2934a9779c..72fed74b949e 100644 --- a/xmlsecurity/source/gpg/CertificateImpl.cxx +++ b/xmlsecurity/source/gpg/CertificateImpl.cxx @@ -61,8 +61,8 @@ OUString SAL_CALL CertificateImpl::getIssuerName() OUString SAL_CALL CertificateImpl::getSubjectName() { - // Empty for gpg - return OUString(); + // Samue as issuer name (user ID) + return getIssuerName(); } namespace { |