"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/http-signature/lib/index.js" (8 Mar 2017, 626 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // Copyright 2015 Joyent, Inc.
    2 
    3 var parser = require('./parser');
    4 var signer = require('./signer');
    5 var verify = require('./verify');
    6 var utils = require('./utils');
    7 
    8 
    9 
   10 ///--- API
   11 
   12 module.exports = {
   13 
   14   parse: parser.parseRequest,
   15   parseRequest: parser.parseRequest,
   16 
   17   sign: signer.signRequest,
   18   signRequest: signer.signRequest,
   19   createSigner: signer.createSigner,
   20   isSigner: signer.isSigner,
   21 
   22   sshKeyToPEM: utils.sshKeyToPEM,
   23   sshKeyFingerprint: utils.fingerprint,
   24   pemToRsaSSHKey: utils.pemToRsaSSHKey,
   25 
   26   verify: verify.verifySignature,
   27   verifySignature: verify.verifySignature,
   28   verifyHMAC: verify.verifyHMAC
   29 };