"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/sshpk/lib/index.js" (7 Feb 2017, 1196 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 Key = require('./key');
    4 var Fingerprint = require('./fingerprint');
    5 var Signature = require('./signature');
    6 var PrivateKey = require('./private-key');
    7 var Certificate = require('./certificate');
    8 var Identity = require('./identity');
    9 var errs = require('./errors');
   10 
   11 module.exports = {
   12     /* top-level classes */
   13     Key: Key,
   14     parseKey: Key.parse,
   15     Fingerprint: Fingerprint,
   16     parseFingerprint: Fingerprint.parse,
   17     Signature: Signature,
   18     parseSignature: Signature.parse,
   19     PrivateKey: PrivateKey,
   20     parsePrivateKey: PrivateKey.parse,
   21     Certificate: Certificate,
   22     parseCertificate: Certificate.parse,
   23     createSelfSignedCertificate: Certificate.createSelfSigned,
   24     createCertificate: Certificate.create,
   25     Identity: Identity,
   26     identityFromDN: Identity.parseDN,
   27     identityForHost: Identity.forHost,
   28     identityForUser: Identity.forUser,
   29     identityForEmail: Identity.forEmail,
   30 
   31     /* errors */
   32     FingerprintFormatError: errs.FingerprintFormatError,
   33     InvalidAlgorithmError: errs.InvalidAlgorithmError,
   34     KeyParseError: errs.KeyParseError,
   35     SignatureParseError: errs.SignatureParseError,
   36     KeyEncryptedError: errs.KeyEncryptedError,
   37     CertificateParseError: errs.CertificateParseError
   38 };