node-libcurl
Version:
The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl
57 lines • 1.29 kB
TypeScript
/**
* 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.
*/
/**
* 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
*/
export declare enum CurlSshKeyType {
/**
* Unknown key type
*/
Unknown = 0,
/**
* RSA key
*/
Rsa = 1,
/**
* DSS key
*/
Dss = 2,
/**
* ECDSA key
*/
Ecdsa = 3,
/**
* ED25519 key
*/
Ed25519 = 4
}
/**
* 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
*/
export declare enum CurlSshKeyMatch {
/**
* The host key is accepted, the connection should continue.
*/
Ok = 0,
/**
* The host key is rejected, the connection is canceled.
*/
Mismatch = 1
}
//# sourceMappingURL=CurlSshKey.d.ts.map