Skip to content

Conversation

@donho
Copy link
Member

@donho donho commented Jan 26, 2026

Add "-chkCert4InfoXML" & "-chkCertKeyId4XML=" options to verify the integrity & authenticity of XML responses (XMLDsig) returned by server, preventing them from being altered or hijacked.

The xml files are signed by xmlSigner:
https://github.com/donho/xmlSigner

… option

Add "-chkCert4InfoXML" & "-chkCertKeyId4XML=" options to verify the integrity & authenticity of XML responses (XMLDsig) returned by server, preventing them from being altered or hijacked.

bool SecurityGuard::verifyXmlSignature(const std::string& xmlData, const std::wstring& trustedThumbprint)
{
HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donho

  • not checking for possible CoInitializeEx failure
  • missing enclosing CoUninitialize()

You can use:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/8e8d1ebcfa8c87303c52f59269e21433b81f78ee/PowerEditor/src/MISC/Common/Common.h#L326

Didn't try the PR, currently I cannot participate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants