aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-03-07 13:04:29 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-04-01 08:38:17 +0200
commit68385a2e983a30c3013663e4cc934a67a9878ea5 (patch)
treec4338d509bfefdc549b5f54548f94ec257809727 /include
parentfd25beff68a8c61c62a1f43eb1c53d50a7390180 (diff)
downloadlibssh-68385a2e983a30c3013663e4cc934a67a9878ea5.tar.gz
libssh-68385a2e983a30c3013663e4cc934a67a9878ea5.tar.xz
libssh-68385a2e983a30c3013663e4cc934a67a9878ea5.zip
options: Add a bind option to set the config directory
This adds the SSH_BIND_OPTIONS_CONFIG_DIR which allows to set the directory used to expand the escape character "%d" when passing a path to ssh_bind_options_parse_file(). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/bind.h1
-rw-r--r--include/libssh/server.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/bind.h b/include/libssh/bind.h
index c082e199..b22a8c7b 100644
--- a/include/libssh/bind.h
+++ b/include/libssh/bind.h
@@ -47,6 +47,7 @@ struct ssh_bind_struct {
int blocking;
int toaccept;
bool config_processed;
+ char *config_dir;
};
struct ssh_poll_handle_struct *ssh_bind_get_poll(struct ssh_bind_struct
diff --git a/include/libssh/server.h b/include/libssh/server.h
index f1d905d0..64e7ca87 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -51,7 +51,8 @@ enum ssh_bind_options_e {
SSH_BIND_OPTIONS_CIPHERS_C_S,
SSH_BIND_OPTIONS_CIPHERS_S_C,
SSH_BIND_OPTIONS_HMAC_C_S,
- SSH_BIND_OPTIONS_HMAC_S_C
+ SSH_BIND_OPTIONS_HMAC_S_C,
+ SSH_BIND_OPTIONS_CONFIG_DIR,
};
typedef struct ssh_bind_struct* ssh_bind;