Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Added enclosed value of CN in double quotes to avoid problems with sp…
Browse files Browse the repository at this point in the history
…ecial characters like comma etc.
  • Loading branch information
DarkCloud14 committed Jun 13, 2018
1 parent b5b4641 commit 216e6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libusbK/src/dpscat/dpscat.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int RunProgram(int argc, LPWSTR* argv)
{
DL_FOREACH(infList->Files, infEL)
{
int lenSubject = _snwprintf(certSubject, _countof(certSubject), L"CN=%s (%s) [Self]", infEL->Provider, infEL->InfTitle);
int lenSubject = _snwprintf(certSubject, _countof(certSubject), L"CN=\"%s (%s) [Self]\"", infEL->Provider, infEL->InfTitle);
if (lenSubject < 0 || lenSubject >= _countof(certSubject)) lenSubject = _countof(certSubject) - 1;
certSubject[lenSubject] = '\0';

Expand Down

0 comments on commit 216e6f7

Please sign in to comment.