ports/devel/libpdel/files/patch-io_ssl__fp.c
Muhammad Moinur Rahman a494fa741d devel/libpdel: Fix build with llvm16
This actually fixes the build of net/sl2tps. Although ERR_GET_FUNC has
ben deprecated in OpenSSL3 but it still manages to build as it does not
throw an error however the consumers faces build failures.

Sponsored by:	The FreeBSD Foundation
2023-08-08 11:55:13 +02:00

18 lines
476 B
C

--- io/ssl_fp.c.orig 2023-08-08 07:48:05 UTC
+++ io/ssl_fp.c
@@ -361,8 +361,10 @@ ssl_log(ssl_logger_t *logger, void *logarg)
strlcat(buf, t, sizeof(buf));
strlcat(buf, ": ", sizeof(buf));
} else {
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
"func=%u: ", ERR_GET_FUNC(e));
+#endif
}
/* Add reason */
@@ -388,4 +390,3 @@ null_logger(void *arg, int sev, const char *fmt, ...)
{
return;
}
-