aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.c
diff options
context:
space:
mode:
authorXiang Xiao <xiaoxiang@xiaomi.com>2021-05-09 23:53:28 +0800
committerAndreas Schneider <asn@cryptomilk.org>2021-05-27 13:45:47 +0200
commitd2182bb7af28894245fe877b4bef7340c8b0a009 (patch)
treebf8689cdfdbff9f762423b23439f5b81a7d3265c /tests/torture.c
parentae44d846b86d495e4e8d68a33bcc2532365e6ac5 (diff)
downloadlibssh-d2182bb7af28894245fe877b4bef7340c8b0a009.tar.gz
libssh-d2182bb7af28894245fe877b4bef7340c8b0a009.tar.xz
libssh-d2182bb7af28894245fe877b4bef7340c8b0a009.zip
Replace the hardcode max path length with PATH_MAX
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Change-Id: Icb1d36b48a759ec11dbaa4c09a39037a80ab0f85
Diffstat (limited to 'tests/torture.c')
-rw-r--r--tests/torture.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/torture.c b/tests/torture.c
index 61209185..3d9eb40d 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -63,10 +63,6 @@
#define TORTURE_SSHD_CONFIG "sshd/sshd_config"
#define TORTURE_PCAP_FILE "socket_trace.pcap"
-#ifndef PATH_MAX
-# define PATH_MAX 4096
-#endif
-
static const char torture_rsa_certauth_pub[]=
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnA2n5vHzZbs/GvRkGloJNV1CXHI"
"S5Xnrm05HusUJSWyPq3I1iCMHdYA7oezHa9GCFYbIenaYPy+G6USQRjYQz8SvAZo06"