Archived Boards > COM Automation and dotNet

SFTP and certificate thumbprints in SAFEARRAY structures


Mogens Christensen:
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 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 fFeatures;
ULONG cbElements;
ULONG cLocks;
PVOID pvData;
SAFEARRAYBOUND rgsabound[1];

How are you accessing SmartFTP functionality? 


[0] Message Index

Go to full version