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

Contents of /rpms/qpsmtpd/sme10/qpsmtpd-0.84-force_tlsv1.patch

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


Revision 1.1 - (show annotations) (download)
Sun Feb 7 20:49:54 2016 UTC (8 years, 8 months ago) by stephdl
Branch: MAIN
CVS Tags: qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-12_el7_sme, qpsmtpd-0_96-11_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-13_el7_sme, qpsmtpd-0_96-6_el7_sme, qpsmtpd-0_96-18_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_84-20_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-8_el7_sme, qpsmtpd-0_96-5_el7_sme, qpsmtpd-0_96-2_el7_sme, qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-14_el7_sme, qpsmtpd-0_96-15_el7_sme, qpsmtpd-0_96-9_el7_sme, qpsmtpd-0_96-4_el7_sme, qpsmtpd-0_96-1_el7_sme, qpsmtpd-0_96-3_el7_sme, qpsmtpd-0_84-18_el7_sme, qpsmtpd-0_96-10_el7_sme, qpsmtpd-0_84-19_el7_sme, HEAD
* Sun Feb 7 2016 stephane de labrusse <stephdl@de-labrusse.fr> 0.84-18.sme
- Build new rpm for sme10

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