Author Topic: SFTP and certificate thumbprints in SAFEARRAY structures  (Read 4840 times)

Mogens Christensen

  • Newbie
  • *
  • Posts: 12
SFTP and certificate thumbprints in SAFEARRAY structures
« on: June 07, 2013, 07:53:25 am »
We have been automating SFTP transfers using WinBatch over SmartFtp for a long time, but suddenly the SFTP session setup requires us to supply the certificate thumbprint also.

SmartFTP gave us a link to the required data structure (Windows safearray, see http://msdn.microsoft.com/en-us/library/windows/desktop/ms221482(v=vs.85).aspx for details).

We have the thumbprint in question; it is a 20 byte long binary sequence. How do we put it into the memory structure below using WinBatch?

typedef struct tagSAFEARRAY {
USHORT cDims;
USHORT fFeatures;
ULONG cbElements;
ULONG cLocks;
PVOID pvData;
SAFEARRAYBOUND rgsabound[1];
} SAFEARRAY, *LPSAFEARRAY;

td

  • Tech Support
  • *****
  • Posts: 4352
    • WinBatch
Re: SFTP and certificate thumbprints in SAFEARRAY structures
« Reply #1 on: June 07, 2013, 09:45:03 am »
How are you accessing SmartFTP functionality? 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade