Name

otrl_privkey_generate — generate a private key

Synopsis

otrl_privkey_generate(ustate,  
 file,  
 accountname,  
 protocol); 
OtrlUserState ustate;
string file;
string accountname;
string protocol;
 

Description

Generate a private DSA key for the local account with the given accountname using the given protocol, storing it into file on disk, and loading it into the given ustate. Overwrite any previously generated or read keys for that account in that OtrlUserState.

If an error occures, it raises an Exception with the attributes errno (containing a numeric gcry error code), os_errno (containing an OS errno, if possible) and strerror (containing a string describing the error)