openbsd-ports/mail/p5-Mail-SpamAssassin/patches/patch-spamc_spamc_c

28 lines
912 B
Plaintext

$OpenBSD: patch-spamc_spamc_c,v 1.1 2012/06/25 22:12:30 sthen Exp $
Remove the SSLv2 support.
--- spamc/spamc.c.orig Mon Jun 25 07:57:51 2012
+++ spamc/spamc.c Mon Jun 25 07:59:14 2012
@@ -359,17 +359,11 @@ read_args(int argc, char **argv,
case 'S':
{
flags |= SPAMC_USE_SSL;
- if (!spamc_optarg || (strcmp(spamc_optarg,"sslv23") == 0)) {
- /* this is the default */
+ if (!spamc_optarg || (strcmp(spamc_optarg,"sslv3") == 0)) {
+ flags |= SPAMC_SSLV3;
}
- else if (strcmp(spamc_optarg,"sslv2") == 0) {
- flags |= SPAMC_SSLV2;
- }
- else if (strcmp(spamc_optarg,"sslv3") == 0) {
- flags |= SPAMC_SSLV3;
- }
else if (strcmp(spamc_optarg,"tlsv1") == 0) {
- flags |= (SPAMC_SSLV2 | SPAMC_SSLV3);
+ flags |= SPAMC_TLSV1;
}
else {
libspamc_log(flags, LOG_ERR, "Please specify a legal ssl version (%s)", spamc_optarg);