mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
Checker script and wordlist comes from curl. Also: - checksrc.pl: sync up with curl. - unfold an IETF URL. - update all IETF URLs where missing. Closes #1959
873 B
873 B
c, SPDX-License-Identifier, Title, Section, Source, See-also
| c | SPDX-License-Identifier | Title | Section | Source | See-also | |||
|---|---|---|---|---|---|---|---|---|
| Copyright (C) The libssh2 project and its contributors. | BSD-3-Clause | libssh2_session_banner_get | 3 | libssh2 |
|
NAME
libssh2_session_banner_get - get the remote banner
SYNOPSIS
#include <libssh2.h>
const char *
libssh2_session_banner_get(oLIBSSH2_SESSION *session);
DESCRIPTION
Once the session has been setup and libssh2_session_handshake(3) has completed successfully, this function can be used to get the server id from the banner each server presents.
RETURN VALUE
A pointer to a string or NULL if something failed. The data pointed to is allocated and associated to the session handle and is freed by libssh2 when libssh2_session_free(3) is used.
AVAILABILITY
Added in 1.4.0