Skip to content

Commit

Permalink
Minor repairs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mirus77 committed Feb 23, 2017
1 parent 6957314 commit ec12c20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/eet/u_EETSigner.pas
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,10 @@ procedure TEETSigner.InitXMLSec;
if (xmlSecCryptoInit() < 0)
then raise EEETSignerException.Create(sSignerXmlSecInitError);
{$ELSE}
InitLibEETSigner('');
if not InitLibEETSigner('')
then raise EEETSignerException.Create(sSignerLibEETInitLibError);
if (eetSignerInit < 0)
then raise EEETSignerException.Create(sSignerXmlSecInitError);
then raise EEETSignerException.Create(sSignerLibEETSignerInitError);
{$ENDIF}
end;

Expand Down
2 changes: 2 additions & 0 deletions include/eet/u_EETSignerExceptions.pas
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ interface
//aSignerNoPFXCert = 'Privátní klíč není načten';
sSignerInvalidPFXCert = 'Neplatný soukromý certifikát nebo heslo.';
sSignerXmlSecInitError = 'Neúšpěšná inicializace xmlsec';
sSignerLibEETInitLibError = 'Neúšpěšná inicializace libeet';
sSignerLibEETSignerInitError = 'Neúšpěšná inicializace eetSignerInit';
sSignerInitWrongDll = 'Neplatná verze knihovny xmlsec.dll.';
sSignerInitNoXmlsecOpensslDll = 'EETSigner: Nenalezena potřebná crypto knihovna openssl.';
sSignerInitNoXmlsecMSCryptoDll = 'EETSigner: Nenalezena potřebná crypto knihovna mscrypto.';
Expand Down
1 change: 1 addition & 0 deletions include/eet/u_libeet.pas
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ function FreeLibEETSigner: Boolean;

if (FlibeetHandle <> 0) and (ReferenceCount = 0) then
begin
FreeLibrary(FlibeetHandle);
FlibeetHandle := 0;

{$IFDEF USE_LIBEET}
Expand Down

0 comments on commit ec12c20

Please sign in to comment.