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

@ -449,7 +449,7 @@ void RsControlModule::handleImportPgp(Request &req, Response &resp)
RsPgpId pgp_id;
std::string error_string;
if(RsAccounts::ImportIdentityFromString(key_string, pgp_id, error_string))
if(RsAccounts::importIdentityFromString(key_string, pgp_id, error_string))
{
resp.mDataStream << makeKeyValueReference("pgp_id", pgp_id);
resp.setOk();