options: canonicalize loose IPv4 hostnames

Signed-off-by: Nikhil V <nikhilgreyshines@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Merge-Request: <https://gitlab.com/libssh/libssh-mirror/-/merge_requests/712>
This commit is contained in:
Nikhil V
2026-02-02 21:48:07 +05:30
committed by Jakub Jelen
parent 95d4743bd6
commit 69e514ffba
4 changed files with 185 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ char *ssh_path_expand_escape(ssh_session session, const char *s);
int ssh_analyze_banner(ssh_session session, int server);
int ssh_is_ipaddr_v4(const char *str);
int ssh_is_ipaddr(const char *str);
int ssh_normalize_loose_ip(const char *host, char **result);
/* list processing */