Re: No value in PrivateKey property. (General questions)
I already checked out that code.
the problem is that the wrapper made the sftp.privateKey methode like this:
// Description: Private key used for authentication.
COMVariant PrivateKey(COMVariant _PrivateKey = COMVariant::createNoValue())
{
COMVariant c = new COMVariant();
c = self.PrivateKey(_PrivateKey);
return c;
}
so i have to pass the key.privateKey(1) as/in a comvariant object.
wich can be a bStr, but from PrivateKeyData i get an array..
how do i make the array to a str?
this dous not work..
types = keys.PrivateKeyData(1);
privateKey.safeArray(types,COMVariantType::VT_I4);
sftp.PrivateKey(PrivateKey);
it give a error, 'Private key could not be determinated'
Complete thread:
- No value in PrivateKey property. - Rob, 2007-07-06, 14:23
- Re: No value in PrivateKey property. - wodDamir, 2007-07-06, 15:01
- Re: No value in PrivateKey property. - Rob, 2007-07-06, 15:10
- Re: No value in PrivateKey property. - wodDamir, 2007-07-06, 15:36
- Re: No value in PrivateKey property. - Rob, 2007-07-06, 15:45
- Re: No value in PrivateKey property. - wodDamir, 2007-07-06, 16:07
- Re: No value in PrivateKey property. - Rob, 2007-07-11, 11:14
- Re: No value in PrivateKey property. - wodDamir, 2007-07-06, 16:07
- Re: No value in PrivateKey property. - Rob, 2007-07-06, 15:45
- Re: No value in PrivateKey property. - wodDamir, 2007-07-06, 15:36
- Re: No value in PrivateKey property. - Rob, 2007-07-06, 15:10
- Re: No value in PrivateKey property. - wodDamir, 2007-07-06, 15:01