Skip to content

Commit

Permalink
New feature added. Getting response certificate from BinarySecurityTo…
Browse files Browse the repository at this point in the history
…ken and validating by "Organisation".
  • Loading branch information
mirus77 committed Oct 22, 2017
1 parent f3abeb9 commit 32efe02
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 30 deletions.
Binary file modified bin/libeetsigner.dll
Binary file not shown.
Binary file modified bin64/libeetsigner.dll
Binary file not shown.
11 changes: 8 additions & 3 deletions demo/u_main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ procedure TTestEETForm.DoOdeslatTrzba;
// EET.ProxyHost := 'proxy';
EET.Initialize;

lblKeySubject.Caption := 'Pøedmìt :' + EET.Signer.PrivKeyInfo.Subject;
lblKeySubject.Caption := 'Pøedmìt :' + EET.Signer.PrivKeyInfo.CommonName;
lblKeyValidFrom.Caption := 'Platnost klíèe od :' + DateTimeToStr(EET.Signer.PrivKeyInfo.notValidBefore);
lblKeyValidTo.Caption := 'Platnost klíèe do :' + DateTimeToStr(EET.Signer.PrivKeyInfo.notValidAfter);

Expand Down Expand Up @@ -271,7 +271,7 @@ procedure TTestEETForm.DoOdeslatTrzba;
begin
if Odp.Potvrzeni <> nil then
begin
if EET.ValidResponse then
if EET.ValidResponse and EET.ValidResponseCert then
begin
Lst := TStringList.Create;
try
Expand All @@ -292,7 +292,12 @@ procedure TTestEETForm.DoOdeslatTrzba;
end;
end
else
MessageDlg('Neplatný podpis odpovìdi !!!', mtError, [mbOK], 0);
begin
if EET.ValidResponse and (EET.ValidResponseCert = False) then
MessageDlg('Neplatný pùvod odpovìdi !!!', mtError, [mbOK], 0)
else
MessageDlg('Neplatný podpis odpovìdi !!!', mtError, [mbOK], 0);
end
end
else
begin
Expand Down
Loading

0 comments on commit 32efe02

Please sign in to comment.