mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 18:15:18 -04:00
JSON API import/export PGP key to file
This commit is contained in:
parent
7a1375ff6f
commit
6543d713e4
3 changed files with 27 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue