Skip to content

Commit

Permalink
Enabled LibSSH's WITH_SERVER flag (#19)
Browse files Browse the repository at this point in the history
* Enabled WITH_SERVER flag.

Fixes #18
  • Loading branch information
JetpackDuba authored Oct 30, 2023
1 parent 38a5fa9 commit c7a596e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libssh-rs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ fn main() {

let target = std::env::var("TARGET").unwrap();
cfg.define("GLOBAL_CLIENT_CONFIG", Some("\"/etc/ssh/ssh_config\""));
cfg.define(
"GLOBAL_BIND_CONFIG",
Some("\"/etc/ssh/libssh_server_config\""),
);
cfg.define("HAVE_GETADDRINFO", Some("1"));
cfg.define("HAVE_LIBCRYPTO", Some("1"));
cfg.define("HAVE_OPENSSL_AES_H", Some("1"));
Expand Down Expand Up @@ -65,6 +69,7 @@ fn main() {
cfg.define("WITH_ZLIB", Some("1"));
cfg.define("WITH_GEX", Some("1"));
cfg.define("WITH_SFTP", Some("1"));
cfg.define("WITH_SERVER", Some("1"));

if target.contains("windows") {
cfg.define("HAVE_IO_H", Some("1"));
Expand Down Expand Up @@ -167,6 +172,7 @@ fn main() {
"auth.c",
"base64.c",
"bignum.c",
"bind_config.c",
"buffer.c",
"callbacks.c",
"chachapoly.c",
Expand Down Expand Up @@ -220,6 +226,7 @@ fn main() {
"pki_ed25519_common.c",
"poll.c",
"scp.c",
"server.c",
"session.c",
"sftp.c",
"socket.c",
Expand Down

0 comments on commit c7a596e

Please sign in to comment.