node-libcurl
Version:
The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl
63 lines • 1.97 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurlSshKeyMatch = exports.CurlSshKeyType = void 0;
/**
* Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// https://github.com/curl/curl/blob/master/include/curl/curl.h
/**
* SSH host key types for use with {@link https://curl.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html | CURLOPT_SSH_HOSTKEYFUNCTION}
*
* These values identify the type of SSH host key.
*
* `CURLKHTYPE_RSA` becomes `CurlSshKeyType.Rsa`
*
* @public
*/
var CurlSshKeyType;
(function (CurlSshKeyType) {
/**
* Unknown key type
*/
CurlSshKeyType[CurlSshKeyType["Unknown"] = 0] = "Unknown";
/**
* RSA key
*/
CurlSshKeyType[CurlSshKeyType["Rsa"] = 1] = "Rsa";
/**
* DSS key
*/
CurlSshKeyType[CurlSshKeyType["Dss"] = 2] = "Dss";
/**
* ECDSA key
*/
CurlSshKeyType[CurlSshKeyType["Ecdsa"] = 3] = "Ecdsa";
/**
* ED25519 key
*/
CurlSshKeyType[CurlSshKeyType["Ed25519"] = 4] = "Ed25519";
})(CurlSshKeyType || (exports.CurlSshKeyType = CurlSshKeyType = {}));
/**
* SSH host key match results for use with {@link https://curl.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html | CURLOPT_SSH_HOSTKEYFUNCTION}
*
* These are return codes for the SSH host key callback function.
*
* `CURLKHMATCH_OK` becomes `CurlSshKeyMatch.Ok`
*
* @public
*/
var CurlSshKeyMatch;
(function (CurlSshKeyMatch) {
/**
* The host key is accepted, the connection should continue.
*/
CurlSshKeyMatch[CurlSshKeyMatch["Ok"] = 0] = "Ok";
/**
* The host key is rejected, the connection is canceled.
*/
CurlSshKeyMatch[CurlSshKeyMatch["Mismatch"] = 1] = "Mismatch";
})(CurlSshKeyMatch || (exports.CurlSshKeyMatch = CurlSshKeyMatch = {}));
//# sourceMappingURL=CurlSshKey.js.map