mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 17:20:29 -04:00
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
18 lines
476 B
C
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;
|
|
}
|
|
-
|