Tess Gauthier 4cd3519fbf
Add telemetry event (#702)
* test sending new event from sshd after kex exchange

* rename telemetry event for clarity

* add comments

* remove else since if block has fatal call

* rename method for additional clarity
2023-12-07 14:35:34 -05:00

36 lines
1.3 KiB
C

#pragma once
// sends authentication type and status
void send_auth_telemetry(const int status, const char* auth_type);
// sends authentication methods configured by SSHD
void send_auth_method_telemetry(const char* auth_methods);
// sends crypto information like cipher, kex, and mac
void send_encryption_telemetry(const char* direction,
const char* cipher, const char* kex, const char* mac,
const char* comp, const char* host_key,
const char** cproposal, const char** sproposal);
// sends exit code of kex_exchange_identification(), utilized only in sshd
void send_kex_exch_exit_code_telemetry(const int exit_code);
// sends status if using key-based auth
void send_pubkey_telemetry(const char* pubKeyStatus);
// sends shell configuration and if pty session is used
void send_shell_telemetry(const int pty, const int shell_type);
// sends signing status if using key-based auth
void send_pubkey_sign_telemetry(const char* pubKeySignStatus);
// sends connection status from ssh client
void send_ssh_connection_telemetry(const char* conn, const char* port);
// sends connection status from ssh server
void send_sshd_connection_telemetry(const char* conn);
// sends version and peer version from ssh & sshd
void send_ssh_version_telemetry(const char* ssh_version,
const char* peer_version, const char* remote_protocol_error);