1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-05 20:21:10 +03:00

Make the transfer buffer size configurable

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Change-Id: I5052bac703b5a0c289ca5c28569cadeb54d3d507
This commit is contained in:
Xiang Xiao
2021-05-10 02:00:24 +08:00
committed by Jakub Jelen
parent 14276f0b51
commit dbe504ea0a
11 changed files with 53 additions and 15 deletions

View File

@ -41,6 +41,10 @@ The goal is to show the API in action.
#include <sys/stat.h>
#include <stdio.h>
#ifndef BUF_SIZE
#define BUF_SIZE 1048576
#endif
#ifndef KEYS_FOLDER
#ifdef _WIN32
#define KEYS_FOLDER
@ -49,7 +53,6 @@ The goal is to show the API in action.
#endif
#endif
#define BUF_SIZE 1048576
#define SESSION_END (SSH_CLOSED | SSH_CLOSED_ERROR)
#define SFTP_SERVER_PATH "/usr/lib/sftp-server"