Fix addon :

* Error in wildcard domain generation
  * Forgot some console.log in code (replace it with debug function)
This commit is contained in:
Grégory Soutadé 2018-06-30 09:04:40 +02:00
parent 81385fbf88
commit 07c64a44a0
6 changed files with 27 additions and 15 deletions

View File

@ -1,3 +1,13 @@
**v0.8.2 :**
Server
Addon
* Error in wildcard domain generation
* Forgot some console.log in code (replace it with debug function)
CLI
**v0.8.1 :**
Server

View File

@ -76,7 +76,7 @@ A sample configuration file is available _gpass.ini.sample_
Version Information
-------------------
Current version is 0.8. **(not compatible with 0.7)**
Current version is 0.8.2 **(not compatible with 0.7)**
Firefox will remove support for addons, so the gPass addon code is not supported since v0.8, please migrate to webextension.

View File

@ -293,7 +293,9 @@ function wildcard_domain(domain)
{
res = "*.";
for (i=1; i<parts.length; i++)
res += parts[i];
res += parts[i] + ".";
// Remove last "."
return res.substr(0, res.length-1);
}
// Simple xxx.com
else if (parts.length == 2)
@ -458,7 +460,7 @@ async function self_test()
console.log("Self test OK !");
}
console.log("Welcome to gPass web extension v0.8.1 !");
console.log("Welcome to gPass web extension v0.8.2 !");
console.log("Privacy Policy can be found at http://indefero.soutade.fr/p/gpass/source/tree/master/PrivacyPolicy.md");
console.log("");

View File

@ -80,11 +80,11 @@ function crypto_pbkdf2(mkey, salt, level)
return key;
})
.catch(function(err){
console.log("Error derive key " + err);
debug("Error derive key " + err);
});
})
.catch(function(err) {
console.log("Error import key" + err);
debug("Error import key" + err);
});
}
@ -112,11 +112,11 @@ function simple_pbkdf2(mkey, salt, level)
});
})
.catch(function(err){
console.log("Error derive key " + err);
debug("Error derive key " + err);
});
})
.catch(function(err) {
console.log("Error import key" + err);
debug("Error import key" + err);
});
}
@ -136,7 +136,7 @@ function _encrypt(mkey, iv, data)
return ab2str(encrypted);
})
.catch(function(encryption) {
console.log("Encryption rejected " + encryption);
debug("Encryption rejected " + encryption);
});
return promise;
@ -164,7 +164,7 @@ async function _decrypt(mkey, iv, data)
return ab2str(decrypted);
})
.catch(function(decryption) {
console.log("Decryption rejected " + decryption);
debug("Decryption rejected " + decryption);
});
return promise;
@ -174,7 +174,7 @@ async function encrypt_ecb(mkey, data)
{
var result = "";
console.log("Encrypt ECB " + data);
debug("Encrypt ECB " + data);
nulliv = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
@ -195,7 +195,7 @@ async function decrypt_ecb(mkey, data)
{
var result = "";
console.log("Decrypt ECB " + data);
debug("Decrypt ECB " + data);
nulliv = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
@ -214,7 +214,7 @@ async function decrypt_ecb(mkey, data)
async function encrypt_cbc(mkey, iv, data)
{
console.log("Encrypt CBC " + data);
debug("Encrypt CBC " + data);
var result = await _encrypt(mkey, str2ab(iv), data);
@ -224,7 +224,7 @@ async function encrypt_cbc(mkey, iv, data)
async function decrypt_cbc(mkey, iv, data)
{
console.log("Decrypt CBC " + data);
debug("Decrypt CBC " + data);
var result = await _decrypt(mkey, str2ab(iv), data);

View File

@ -3,7 +3,7 @@
"name": "gPass",
"short_name": "gPass",
"version": "0.8.1",
"version": "0.8.2",
"description": "gPass : global password manager",
"icons" : {"16":"icons/gpass_icon_16.png", "32":"icons/gpass_icon_32.png", "64":"icons/gpass_icon_64.png", "128":"icons/gpass_icon_128.png"},
"author" : "Grégory Soutadé",

View File

@ -3,7 +3,7 @@
"name": "gPass",
"short_name": "gPass",
"version": "0.8.1",
"version": "0.8.2",
"description": "gPass : global password manager",
"icons" : {"16":"icons/gpass_icon_16.png", "32":"icons/gpass_icon_32.png", "64":"icons/gpass_icon_64.png", "128":"icons/gpass_icon_128.png"},
"author" : "Grégory Soutadé",