Skip to content

Commit

Permalink
libguile-ssh/session-func: Improve
Browse files Browse the repository at this point in the history
* libguile-ssh/session-func.c: Issue compilation warnings when some session
options are not available due to an old version of libssh.
  • Loading branch information
artyom-poptsov committed Nov 10, 2024
1 parent 4faf8eb commit 6f39f21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libguile-ssh/session-func.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ static gssh_symbol_t session_options[] = {
/* This option was added only in 0.9.0 (commit
79f0c38fbd767f578d7b87fae15fb64faad32aab) */
{ "process-config?", SSH_OPTIONS_PROCESS_CONFIG },
#else
# warning Option SSH_OPTIONS_PROCESS_CONFIG is not available.
#endif

#if HAVE_LIBSSH_0_8_1
{ "nodelay", SSH_OPTIONS_NODELAY },
#else
# warning Option SSH_OPTIONS_NODELAY is not available.
#endif

#if HAVE_LIBSSH_0_8_3
Expand All @@ -91,6 +95,8 @@ static gssh_symbol_t session_options[] = {

#if HAVE_LIBSSH_0_10
{"rsa-min-size", SSH_OPTIONS_RSA_MIN_SIZE },
#else
# warning Option SSH_OPTIONS_RSA_MIN_SIZE is not available.
#endif

{ "callbacks", GSSH_OPTIONS_CALLBACKS },
Expand Down

0 comments on commit 6f39f21

Please sign in to comment.