Back to FlowSsh Documentation

Keypair - GetOpenSshData


BSTR __cdecl FlowSshC_Keypair_GetOpenSshData(FlowSshC_Keypair* keypair);


[Keypair] Data GetOpenSshData() const;


[Keypair] public byte[] GetOpenSshData();

[C] Parameters

Return Value

Returns private-key data of the keypair in the OpenSSH 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 private-key data retrieved here to a file, so it can conveniently be imported at some other location.