ports/158031: [patch] security/snort to add SSL support to MySQL connections
Ryan Steinmetz
rpsfa at rit.edu
Sun Jun 19 17:20:15 UTC 2011
The following reply was made to PR ports/158031; it has been noted by GNATS.
From: Ryan Steinmetz <rpsfa at rit.edu>
To: bug-followup at freebsd.org
Cc:
Subject: Re: ports/158031: [patch] security/snort to add SSL support to MySQL
connections
Date: Sun, 19 Jun 2011 13:11:54 -0400
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Attached is the new EXTRA_PATCH required by this PR.
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.shar.txt"
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# files/extra-patch-mysql_ssl
#
echo x - files/extra-patch-mysql_ssl
sed 's/^X//' >files/extra-patch-mysql_ssl << '626cb1d028b27d7ebe674cf9f03007bc'
X--- src/output-plugins/spo_database.c 2011-06-19 10:59:59.000000000 -0400
X+++ src/output-plugins/spo_database.c 2011-06-19 11:08:58.000000000 -0400
X@@ -3000,6 +3000,8 @@
X FatalError("database: Failed to set reconnect option: %s\n", mysql_error(data->m_sock));
X #endif /* !MYSQL_HAS_OPT_RECONNECT_BUG */
X
X+ mysql_ssl_set(data->m_sock, "%%ETCDIR%%/certs/key.pem", "%%ETCDIR%%/certs/cert.pem", "%%ETCDIR%%/certs/ca.pem", NULL, NULL);
X+
X if(mysql_real_connect(data->m_sock, data->shared->host, data->user,
X data->password, data->shared->dbname,
X data->port == NULL ? 0 : atoi(data->port), NULL, 0) == NULL)
626cb1d028b27d7ebe674cf9f03007bc
exit
--huq684BweRXVnRxX--
More information about the freebsd-ports-bugs
mailing list