Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix - Salmon.js was missing crypto package

  • Loading branch information...
commit 1ee3baf06ef59d13971a213647fafca386f62f2a 1 parent a6ea47e
Laurent Eschenauer authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/ostatus/salmon.js
3  lib/ostatus/salmon.js
View
@@ -31,6 +31,7 @@ var Sys = require('sys'),
Path = require('path'),
Mu = require('mu');
Base64 = require('base64');
+ Crypto = require('crypto');
Buffer = require('buffer').Buffer;
function unpack(body, callback) {
@@ -62,7 +63,7 @@ function unpack(body, callback) {
function verify_signature(data, data_type, encoding, alg, cert, signature) {
var m = data + "." + base64url_encode(data_type) + "." + base64url_encode(encoding) + "." + base64url_encode(alg);
- var v = crypto.createVerify('RSA-SHA256');
+ var v = Crypto.createVerify('RSA-SHA256');
v.update(m);
return v.verify(cert, signature);
}
Please sign in to comment.
Something went wrong with that request. Please try again.