mirror of
https://github.com/curl/curl.git
synced 2026-08-03 07:10:29 +03:00
ssh: add a generic Curl_ssh_version function for SSH backends
Closes #4235
This commit is contained in:
parent
1a7634e484
commit
ea28a6cb2f
4 changed files with 27 additions and 30 deletions
16
lib/ssh.h
16
lib/ssh.h
|
|
@ -239,12 +239,16 @@ extern const struct Curl_handler Curl_handler_sftp;
|
|||
|
||||
extern const struct Curl_handler Curl_handler_scp;
|
||||
extern const struct Curl_handler Curl_handler_sftp;
|
||||
|
||||
CURLcode Curl_ssh_init(void);
|
||||
void Curl_ssh_cleanup(void);
|
||||
|
||||
#else
|
||||
#define Curl_ssh_cleanup()
|
||||
#endif /* USE_LIBSSH2 */
|
||||
|
||||
#ifdef USE_SSH
|
||||
/* generic SSH backend functions */
|
||||
CURLcode Curl_ssh_init(void);
|
||||
void Curl_ssh_cleanup(void);
|
||||
size_t Curl_ssh_version(char *buffer, size_t buflen);
|
||||
#else
|
||||
/* for non-SSH builds */
|
||||
#define Curl_ssh_cleanup()
|
||||
#endif
|
||||
|
||||
#endif /* HEADER_CURL_SSH_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue