/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.84-force_tlsv1.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme9/qpsmtpd-0.84-force_tlsv1.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Dec 22 20:51:48 2014 UTC (9 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: qpsmtpd-0_84-14_el6_sme, qpsmtpd-0_96-5_el6_sme, qpsmtpd-0_84-10_el6_sme, qpsmtpd-0_84-16_el6_sme, qpsmtpd-0_96-1_el6_sme, qpsmtpd-0_96-6_el6_sme, qpsmtpd-0_84-12_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-2_el6_sme, qpsmtpd-0_84-13_el6_sme, qpsmtpd-0_96-4_el6_sme, qpsmtpd-0_96-3_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_84-11_el6_sme, qpsmtpd-0_84-17_el6_sme, qpsmtpd-0_84-18_el6_sme, qpsmtpd-0_96-9_el6_sme, qpsmtpd-0_84-15_el6_sme, HEAD
* Mon Dec 22 2014 Daniel Berteaud <daniel@firewall-services.com> 0.84-10.sme
- Force usage of TLSv1 [SME: 8726]

1 vip-ire 1.1 diff -Nur qpsmtpd-0.84/plugins/tls qpsmtpd-0.84_bz8726/plugins/tls
2     --- qpsmtpd-0.84/plugins/tls 2014-12-10 22:30:01.359000000 +0100
3     +++ qpsmtpd-0.84_bz8726/plugins/tls 2014-12-10 22:33:38.215000000 +0100
4     @@ -74,6 +74,7 @@
5     $self->tls_key($key);
6     $self->tls_ca($ca);
7     $self->tls_ciphers($self->qp->config('tls_ciphers') || 'HIGH');
8     + $self->tls_version($self->qp->config('tls_version') || 'TLSv1');
9    
10     Qpsmtpd->varlog(LOGINFO, "init", "tls", "ciphers: ".$self->tls_ciphers);
11    
12     @@ -84,6 +85,7 @@
13     SSL_key_file => $self->tls_key,
14     SSL_ca_file => $self->tls_ca,
15     SSL_cipher_list => $self->tls_ciphers,
16     + SSL_version => $self->tls_version,
17     SSL_server => 1
18     ) or die "Could not create SSL context: $!";
19     # now extract the password...
20     @@ -180,6 +182,7 @@
21     SSL_key_file => $self->tls_key,
22     SSL_ca_file => $self->tls_ca,
23     SSL_cipher_list => $self->tls_ciphers,
24     + SSL_version => $self->tls_version,
25     SSL_server => 1,
26     SSL_reuse_ctx => $self->ssl_context,
27     ) or die "Could not create SSL socket: $!";
28     @@ -236,6 +239,12 @@
29     $self->{_tls_ciphers};
30     }
31    
32     +sub tls_version {
33     + my $self = shift;
34     + @_ and $self->{_tls_version} = shift;
35     + $self->{_tls_version};
36     +}
37     +
38     sub ssl_context {
39     my $self = shift;
40     @_ and $self->{_ssl_ctx} = shift;
41     @@ -282,6 +291,7 @@
42     SSL_key_file => $self->{_stashed_plugin}->tls_key,
43     SSL_ca_file => $self->{_stashed_plugin}->tls_ca,
44     SSL_cipher_list => $self->{_stashed_plugin}->tls_ciphers,
45     + SSL_version => $self->{_stashed_plugin}->tls_version,
46     SSL_startHandshake => 0,
47     SSL_server => 1,
48     SSL_reuse_ctx => $self->{_stashed_plugin}->ssl_context,

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed