KeyStorage disappear

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

KeyStorage disappear

Post by kaffeburk » Thu 18 Jun 2020 13:20

Hello,

I'm trying to add som functionality to TScFileStorage with an Interposer class, but i fail. When the new class start to exist the TScSSHClient lose its KeyStorage property. Any workaround?

[dcc64 Error] Unit1.pas(33): E2003 Undeclared identifier: 'KeyStorage'

Code: Select all

unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Scbridge, ScSSHClient;

type
    TScSSHClient = Class(Scbridge.TScFileStorage)// Interposer class
    End;

  TForm1 = class(TForm)
    ScSSHClient1: TScSSHClient;
    ScFileStorage1: TScFileStorage;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
      ScSSHClient1.KeyStorage:=Nil;
end;

end.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: KeyStorage disappear

Post by ViktorV » Fri 19 Jun 2020 10:37

The use of Interposer classes is an undocumented feature of the Pascal programming language, while we only support documented functionality of the IDE in SecureBridge. We are happy to answer any questions you may have about our products, but we don't advise on using Delphi itself. Please refer to Embarcadero documentation for possible workarounds or ask your question on specialized forums.
Note that an Interposer class is a class that has the same name as the class you'd like to change, therefore you should probably try using TScFileStorage = Class(Scbridge.TScFileStorage).

kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Re: KeyStorage disappear

Post by kaffeburk » Fri 19 Jun 2020 16:31

Agre. Thanx.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: KeyStorage disappear

Post by ViktorV » Mon 22 Jun 2020 14:30

Thank you for the interest to our product.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply