diff --git a/resources/openpgp.js b/resources/openpgp.js index 6390922a..babed439 100644 --- a/resources/openpgp.js +++ b/resources/openpgp.js @@ -10256,7 +10256,7 @@ function openpgp_config() { keyserver: "keyserver.linux.it" // "pgp.mit.edu:11371" }; - this.versionstring ="OpenPGP.js v0.1"; + this.versionstring ="OpenPGP.js 20120730"; this.commentstring ="http://openpgpjs.org"; /** * reads the config out of the HTML5 local storage @@ -14381,6 +14381,7 @@ function openpgp_msg_message() { /** * Verifies a message signature. This function can be called after read_message if the message was signed only. + * @param pubkey [openpgp_msg_publickey] Array of public keys to check signature against. If not provided, checks local keystore. * @return [boolean] true if the signature was correct; otherwise false */ function verifySignature(pubkey) { diff --git a/resources/openpgp.min.js b/resources/openpgp.min.js index d54a79a5..e99372e8 100644 --- a/resources/openpgp.min.js +++ b/resources/openpgp.min.js @@ -392,7 +392,7 @@ return this.len=a-c};this.write=function(){};this.toString=function(){for(var a= this.subKeys.length;b++)a+=" "+this.subKeys[b].toString();return a};this.validate=function(){for(var a=0;a"$_min" echo "Concatenating..." -find "$_src" -name "*.js" -exec cat "{}" >> "$_raw" \; +find "$_src" -name "*.js" -exec cat "{}" >> "$_tmp" \; +sed "s/OpenPGP.js VERSION/OpenPGP.js $(date +%Y%m%d)/g" "$_tmp" > "$_raw"; +rm "$_tmp"; echo "Minimizing..." java -jar "$_compiler" --js "$_raw" --js_output_file "$_min" diff --git a/src/config/openpgp.config.js b/src/config/openpgp.config.js index 2696cade..bf10724e 100644 --- a/src/config/openpgp.config.js +++ b/src/config/openpgp.config.js @@ -44,7 +44,7 @@ function openpgp_config() { keyserver: "keyserver.linux.it" // "pgp.mit.edu:11371" }; - this.versionstring ="OpenPGP.js v0.1"; + this.versionstring ="OpenPGP.js VERSION"; this.commentstring ="http://openpgpjs.org"; /** * reads the config out of the HTML5 local storage diff --git a/src/openpgp.msg.message.js b/src/openpgp.msg.message.js index 2eca8c9e..c3942f56 100644 --- a/src/openpgp.msg.message.js +++ b/src/openpgp.msg.message.js @@ -98,6 +98,7 @@ function openpgp_msg_message() { /** * Verifies a message signature. This function can be called after read_message if the message was signed only. + * @param pubkey [openpgp_msg_publickey] Array of public keys to check signature against. If not provided, checks local keystore. * @return [boolean] true if the signature was correct; otherwise false */ function verifySignature(pubkey) {