Skip to content

Commit

Permalink
#362 don't check digest
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 5, 2025
1 parent 3667972 commit f3e71b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4382,12 +4382,12 @@ class XpraClient {
}
// removed hash checks because crypto.subtle is asynchronous, which is a pain
if (data.length == filesize) {
//got the whole file
if (digest) {
digest.update(Utilities.ArrayBufferToString(data));
this.log("digest.update(", data, ")");
if (!this.verify_digest(digest, options[digest.algorithm])) {
return;
// got the whole file
for (const digest of ["sha512", "sha384", "sha256", "sha224", "sha1"]) {
const digest_value = options[digest];
if (digest_value) {
// not implemented!
this.log("digest check not implemented for", digest);
}
}
this._got_file(basefilename, data, printit, mimetype, options);
Expand Down

0 comments on commit f3e71b4

Please sign in to comment.