Skip to content

Commit

Permalink
getSelfKey
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.getfiregpg.org/firegpg@83 1e1cc2a3-b62a-0410-bc93-fb3b3b0a0737
  • Loading branch information
theglu committed Mar 5, 2007
1 parent 28e083b commit 56875ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions ChangeLog
@@ -1,6 +1,7 @@
2007-03-04 Maximilien Cuony
* Fix an error in getPrivateKeyPassword()
* Cgpg class in now finish !
* Implementation of getSelfKey(), for get the default key !

2007-03-05 Achraf cherti
* new function getPrivateKeyPassword() (with i18n support), to replace
Expand Down
15 changes: 10 additions & 5 deletions content/misc.js
Expand Up @@ -95,18 +95,23 @@ function getPrivateKeyPassword() {
}

/*
* TODO: description
* Funtion who return the default private key
*/
function getSelfKey() {
// TODO describe!
return selfKey;

var prefs = Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefService);
prefs = prefs.getBranch("extensions.firegpg.");
var value = prefs.getCharPref("default_private_key"); // get a pref

return value;
}

/*
* TODO: description
* Function who return a key (for crypts)
*/
function getAKey() {
// TODO describe?

return "B6B2F3E3";
}

Expand Down

0 comments on commit 56875ec

Please sign in to comment.