JSON API import/export PGP key to file

This commit is contained in:
Gioacchino Mazzurco 2018-10-21 17:12:13 +02:00
parent 7a1375ff6f
commit 6543d713e4
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 27 additions and 7 deletions

View file

@ -1347,9 +1347,12 @@ bool RsAccounts::ImportIdentity(const std::string& fname,RsPgpId& imported_pg
return rsAccountsDetails->importIdentity(fname,imported_pgp_id,import_error);
}
bool RsAccounts::ImportIdentityFromString(const std::string& data,RsPgpId& imported_pgp_id,std::string& import_error)
bool RsAccounts::importIdentityFromString(
const std::string& data, RsPgpId& imported_pgp_id,
std::string& import_error )
{
return rsAccountsDetails->importIdentityFromString(data,imported_pgp_id,import_error);
return rsAccountsDetails->
importIdentityFromString(data, imported_pgp_id, import_error);
}
/*static*/ bool RsAccounts::exportIdentityToString(