openbsd-ports/sysutils/LPRng/patches/patch-src_common_ssl_auth_c
2010-10-03 21:41:01 +00:00

16 lines
501 B
Plaintext

$OpenBSD: patch-src_common_ssl_auth_c,v 1.1 2010/10/03 21:41:01 jasper Exp $
Fix build with OpenSSL 1.0.
--- src/common/ssl_auth.c.orig Sun Oct 3 22:53:37 2010
+++ src/common/ssl_auth.c Sun Oct 3 22:54:48 2010
@@ -173,7 +173,7 @@ int SSL_Initialize_ctx(
{
char *certpath, *certfile, *cp, *cf;
char *mycert;
- SSL_METHOD *meth = 0;
+ const SSL_METHOD *meth = NULL;
SSL_CTX *ctx = 0;
char header[SMALLBUFFER];
char cabuf[MAXPATHLEN], certbuf[MAXPATHLEN], pwbuf[MAXPATHLEN];