mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
- fix SSL startup
Obtained from: http://blog.sekuritatea.com/index.php/archives/34
This commit is contained in:
parent
e19013d355
commit
d4971ef721
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=253161
@ -14,6 +14,7 @@ MASTERDIR?= ${.CURDIR}/../lighttpd
|
||||
WITH_MYSQL= yes
|
||||
|
||||
EXTRA_PATCHES+= ${.CURDIR}/files/patch-src_http_auth.c
|
||||
EXTRA_PATCHES+= ${.CURDIR}/files/patch-src_network.c
|
||||
|
||||
.if exists(${.CURDIR}/Makefile.local)
|
||||
.include "${.CURDIR}/Makefile.local"
|
||||
|
11
www/lighttpd-mysqlauth/files/patch-src_network.c
Normal file
11
www/lighttpd-mysqlauth/files/patch-src_network.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/network.c.orig 2010-02-02 00:28:20.000000000 +0100
|
||||
+++ src/network.c 2010-04-24 13:43:10.000000000 +0200
|
||||
@@ -525,7 +525,7 @@
|
||||
|
||||
if (!s->ssl_use_sslv2) {
|
||||
/* disable SSLv2 */
|
||||
- if (SSL_OP_NO_SSLv2 != SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2)) {
|
||||
+ if (!(SSL_OP_NO_SSLv2 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv2))) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "ss", "SSL:",
|
||||
ERR_error_string(ERR_get_error(), NULL));
|
||||
return -1;
|
Loading…
Reference in New Issue
Block a user