diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:39:37 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:39:37 +0100 |
commit | b3077e417056f18225957f65419b87de72117fe3 (patch) | |
tree | be00437c83175ca09b184df6fb21ffe149e11ff8 /helpers/peertubeCrypto.js | |
parent | c5a8be2b6282d2042e469e1b7c1e7ce8795c026f (diff) | |
download | PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.gz PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.zst PeerTube-b3077e417056f18225957f65419b87de72117fe3.zip |
Standard v6
Diffstat (limited to 'helpers/peertubeCrypto.js')
-rw-r--r-- | helpers/peertubeCrypto.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers/peertubeCrypto.js b/helpers/peertubeCrypto.js index 36271dba9..9031f6ae5 100644 --- a/helpers/peertubeCrypto.js +++ b/helpers/peertubeCrypto.js | |||
@@ -5,11 +5,12 @@ | |||
5 | var crypto = require('crypto') | 5 | var crypto = require('crypto') |
6 | var fs = require('fs') | 6 | var fs = require('fs') |
7 | var openssl = require('openssl-wrapper') | 7 | var openssl = require('openssl-wrapper') |
8 | var path = require('path') | ||
8 | var ursa = require('ursa') | 9 | var ursa = require('ursa') |
9 | 10 | ||
10 | var logger = require('./logger') | 11 | var logger = require('./logger') |
11 | 12 | ||
12 | var certDir = __dirname + '/../' + config.get('storage.certs') | 13 | var certDir = path.join(__dirname, '..', config.get('storage.certs')) |
13 | var algorithm = 'aes-256-ctr' | 14 | var algorithm = 'aes-256-ctr' |
14 | 15 | ||
15 | var peertubeCrypto = { | 16 | var peertubeCrypto = { |