mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Fixed CORE-5769: Database crypt plugin sample on Pascal is broken
This commit is contained in:
parent
dadab0aec3
commit
45b0e52313
@ -71,6 +71,7 @@ Type
|
||||
procedure setKey(status: IStatus; length: Cardinal; sources: IKeyHolderPluginPtr; keyName: PAnsiChar); override;
|
||||
procedure encrypt(status: IStatus; length: Cardinal; src, dst: Pointer); override;
|
||||
procedure decrypt(status: IStatus; length: Cardinal; src, dst: Pointer); override;
|
||||
procedure setInfo(status: IStatus; info: IDbCryptInfo); override;
|
||||
|
||||
private
|
||||
procedure pxor(length: Cardinal; mem: Pointer);
|
||||
@ -179,6 +180,13 @@ begin
|
||||
Result := FOwner;
|
||||
end;
|
||||
|
||||
procedure TMyCrypt.setInfo(status: IStatus; info: IDbCryptInfo);
|
||||
begin
|
||||
status.init;
|
||||
|
||||
// do nothing in this trivial sample
|
||||
end;
|
||||
|
||||
procedure TMyCrypt.decrypt(status: IStatus; length: Cardinal; src, dst: Pointer);
|
||||
begin
|
||||
status.init;
|
||||
|
Loading…
Reference in New Issue
Block a user