ssh: dedupe state change function

Closes #20473
This commit is contained in:
Viktor Szakats 2026-01-29 16:07:26 +01:00
parent 1acf0c45f4
commit 97a294688f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 246 additions and 334 deletions

View file

@ -238,6 +238,17 @@ struct ssh_conn {
#ifdef USE_SSH
#ifdef CURLVERBOSE
const char *Curl_ssh_statename(sshstate state);
#else
#define Curl_ssh_statename(x) ""
#endif
void Curl_ssh_set_state(struct Curl_easy *data,
struct ssh_conn *sshc,
sshstate nowstate);
#define myssh_to(x, y, z) Curl_ssh_set_state(x, y, z)
/* generic SSH backend functions */
CURLcode Curl_ssh_init(void);
void Curl_ssh_cleanup(void);