Delphi-PRAXiS
Seite 3 von 8     123 45     Letzte »    

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Swissbit DLL - Diverse Fragen (https://www.delphipraxis.net/202858-swissbit-dll-diverse-fragen.html)

herbstrot 30. Jan 2020 09:43

AW: Swissbit DLL - Diverse Fragen
 
Moin,

in der HTML-Doku unter Modules/Exporting Stored Data
Da steht:
Zitat:

WORMAPI WormError WORMAPI_CALL worm_getLogMessageCertificate ( WormContext * context,
unsigned char * certificate,
uint32_t * certificateLength
)

Returns the certificate that can be used to verify the signatures of all Log Messages created by the TSE.

The returned data is a single PEM file, which contains multiple certificates, since the TSE's certificate is signed by other certificates. To verify the signature, only the leaf certificate (the first one in the PEM file) is required. To make sure the leaf certificate is genuine, the next certificate in the file can be used to verify the previous certificate until the last certificate is about to be checked, which will be the root certificate that must be trusted by the system.

Since the whole chain might be quite large, it is advised to supply a big certificate buffer (i.e. several kilobytes). If the buffer is too small, the method will fail.

Note
This command requires an active CTSS interface.

Parameters
[in] context Library context
[out] certificate Output buffer. Must be allocated by the caller. If this is NULL, only the required length for the buffer will be stored in certificateLength.
[in,out] certificateLength Length of the certificate buffer. After a successful execution, this will contain the number of bytes that were written to the output buffer.

ISMIRSCHLECHT 30. Jan 2020 09:50

AW: Swissbit DLL - Diverse Fragen
 
Hi,

das ist ja bekloppt wie'n Schnitzel. In der Abteilung EXPORTE habe ich natürlich nicht gesucht.
Na dann... :-D
ism

ISMIRSCHLECHT 5. Feb 2020 13:15

AW: Swissbit DLL - Diverse Fragen
 
Mahlzeit,

nochmal zum Problem der Clientenliste von DeddyH.

Wie bzw. wann hast Du die clients: PWormClient erzeugt ?
ism

hhcm 5. Feb 2020 13:36

AW: Swissbit DLL - Diverse Fragen
 
Welches Problem?

Ich habe eine Unit WormTypes. Da steht unter anderem

Code:
type
  // Clients
  TClientId = array [0 .. 30] of AnsiChar;

  TWormClients = packed record
    amount: Integer;
    clientIds: array [0 .. 16] of TClientId;
  end;

  PWormClients = ^TWormClients;
drin. In meiner WormStore Klasse gibts folgendes.

Code:
function WormStore.tse_listRegisteredClients: TStringList;
var
  res: Integer;
  i: Integer;
  clients: PWormClients;
begin
  New(clients);
  Result := TStringList.Create;
  try
    res := worm_tse_listRegisteredClients(worm_context, 0, clients);

    if (res <> WORM_ERROR_NOERROR) then
      raise EWormException.Create(res);

    for i := 0 to clients.amount - 1 do
      Result.Add(clients.clientIds[i]);
  finally
    Dispose(clients);
  end;
end;
Aufgerufen wird´s z.B so.

Code:
var clients: TStringlist;
...

clients := WormAccessInstanz.tse_listRegisteredClients;
try
  Memo1.Lines.Add('Registered Clients: ' + clients.CommaText);
finally
  clients.Free;
end;

ISMIRSCHLECHT 5. Feb 2020 13:39

AW: Swissbit DLL - Diverse Fragen
 
Hallo,

ja, inzwischen hab ichs auch so.
ism

arnof 5. Feb 2020 15:53

AW: Swissbit DLL - Diverse Fragen
 
Um ein TAR-Archiv vernünftig ansehen zu können braucht man das Programm "AmadeusVerify", falls man an Gastrmist gebunden ist.

Swissbit hatte Mitte Jan auf einer Veranstaltung bekannt gegeben, das es einen Online TAR Prüfer geben soll, der soll Anfang Feb auf deren Webseite zu finden sein. Ich habe noch nicht geschaut und die 500 Euronen für das Verify Tool ausgegeben ;-)

hhcm 5. Feb 2020 16:56

AW: Swissbit DLL - Diverse Fragen
 
Ich habe gerade nen Update bekommen. (TSE-API v5.5.1)
Dazu noch PDF Dokumentationen von Swissbit. Ein Komplett-Export (wird bevorzugt z.B so gemacht)

Code:
cat TSE_TAR.001 TSE_TAR.002 TSE_TAR.003 ... > TSE_TAR.tar
Ich glaube ich warte noch 3-4 Monate. Da wird sich noch einiges zeigen.

DeddyH 6. Feb 2020 10:19

AW: Swissbit DLL - Diverse Fragen
 
Bist Du Dir bezüglich der Version sicher? Wir finden da nur eine aktualisierte 5.4. Muss ich meine Brille putzen?

hhcm 6. Feb 2020 10:34

AW: Swissbit DLL - Diverse Fragen
 
Ja. Changelog sieht so aus.

Zitat:

# Changelog
All notable changes to this project will be documented in this file.

## 5.5.1 - 2020-02-04
- update documentation of `worm_tse_runSelfTest`
- update documentation of `worm_tse_updateTime`

## 5.5 - 2020-02-04
- java: include wrapper source code in SDK
- allow `worm_tse_setup` to be called again after it previously failed
- implement background thread to prevent a possible
`WORM_ERROR_SIG_ERROR` (0xFF00), especially during startup of the
TSE, before a valid time has been set
- update documentation of `worm_info_tseDescription`
- update documentation of `worm_init`
- add documentation about thread safety

## 5.4 - 2020-01-20
- add `worm_logTimeFormat`
- add stricter validity checks for entries that are returned by
`worm_entry_iterate_*` methods
- add fast incremental TAR export with `worm_export_tar_incremental`

etc.
Ich muss dazu sagen, dass ich meine TSE NICHT von GastroMIS habe. Sondern von einem anderen Swissbit Partner.

jaenicke 6. Feb 2020 10:36

AW: Swissbit DLL - Diverse Fragen
 
Zitat:

Zitat von ISMIRSCHLECHT (Beitrag 1455850)
Um ein TAR-Archiv vernünftig ansehen zu können braucht man das Programm "AmadeusVerify", falls man an Gastrmist gebunden ist.

Mit PeaZip konnte ich das heruntergeladene Archiv (zumindest von Epson) problemlos öffnen. Die Standardtools wie 7zip haben damit ein Problem. Alternativ kann man für einen kurzen Blick auch einfach einen Texteditor nehmen. Die Struktur von .tar Dateien ist ja recht simpel.


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:39 Uhr.
Seite 3 von 8     123 45     Letzte »    

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz