Back to FlowSsh Documentation

PublicKey - GetSsh2Data


BSTR __cdecl FlowSshC_PublicKey_GetSsh2Data(FlowSshC_PublicKey* publicKey);


[PublicKey] Data GetSsh2Data() const;


[PublicKey] public byte[] GetSsh2Data();

[C] Parameters

Return Value

Returns public-key data in the SSH2 format. The returned data is:

  • [C] A BSTR. The caller must release the returned BSTR with SysFreeString.
  • [Cpp] A Data object.
  • [Net] An array of type Byte.


Usually you will save the public-key data retrieved here to a file, so it can conveniently be imported at some other location.