From b5352bc7b9f6865bb7ec7822bcc0cd4fe7c0232e Mon Sep 17 00:00:00 2001 From: DBL2017 <1578770584@qq.com> Date: Fri, 26 Apr 2024 20:09:44 +0800 Subject: [PATCH] remove access function, windows compatible --- src/SSLSocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SSLSocket.c b/src/SSLSocket.c index 5af12e82..12458bd3 100644 --- a/src/SSLSocket.c +++ b/src/SSLSocket.c @@ -170,7 +170,7 @@ static int SSLSocket_certificate_verify_cb(int preverify_ok, X509_STORE_CTX *x50 goto exit; } - if (opts->publicKey == NULL || strlen(opts->publicKey) <= 0 || access(opts->publicKey, R_OK) != 0) + if (opts->publicKey == NULL || strlen(opts->publicKey) <= 0 ) { Log(TRACE_MIN, -1, "Error opts pubKey invalid"); goto exit;