aboutsummaryrefslogtreecommitdiffhomepage
path: root/middlewares
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-10-29 23:29:12 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-10-29 23:29:42 +0100
commitd148f3b9b180f43d63de84383938de0c9f51b583 (patch)
treee6f613706acf898bd071b6bd374c85a8f2941dc7 /middlewares
parent241abd6977790bc31ba66ede2fbe23d4b94d117b (diff)
downloadPeerTube-d148f3b9b180f43d63de84383938de0c9f51b583.tar.gz
PeerTube-d148f3b9b180f43d63de84383938de0c9f51b583.tar.zst
PeerTube-d148f3b9b180f43d63de84383938de0c9f51b583.zip
Replace PeopleTube/PeTube by the new name PeerTube
Diffstat (limited to 'middlewares')
-rw-r--r--middlewares/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/middlewares/index.js b/middlewares/index.js
index c8139075a..6368d791a 100644
--- a/middlewares/index.js
+++ b/middlewares/index.js
@@ -39,7 +39,7 @@
39 var signature_ok = crt.hashAndVerify('sha256', new Buffer(req.body.signature.url).toString('hex'), req.body.signature.signature, 'hex') 39 var signature_ok = crt.hashAndVerify('sha256', new Buffer(req.body.signature.url).toString('hex'), req.body.signature.signature, 'hex')
40 40
41 if (signature_ok === true) { 41 if (signature_ok === true) {
42 var myKey = ursa.createPrivateKey(fs.readFileSync(utils.certDir + 'petube.key.pem')) 42 var myKey = ursa.createPrivateKey(fs.readFileSync(utils.certDir + 'peertube.key.pem'))
43 var decryptedKey = myKey.decrypt(req.body.key, 'hex', 'utf8') 43 var decryptedKey = myKey.decrypt(req.body.key, 'hex', 'utf8')
44 logger.debug(decryptedKey) 44 logger.debug(decryptedKey)
45 req.body.data = JSON.parse(utils.symetricDecrypt(req.body.data, decryptedKey)) 45 req.body.data = JSON.parse(utils.symetricDecrypt(req.body.data, decryptedKey))