2012-04-29 10:35:59 +02:00
|
|
|
#!perl -w
|
2005-07-08 18:50:24 +02:00
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
tls - plugin to support STARTTLS
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
# in config/plugins
|
|
|
|
|
2015-02-02 10:53:42 +01:00
|
|
|
tls [B<cert_path priv_key_path ca_path dhparam_path>]
|
2006-04-25 02:08:20 +02:00
|
|
|
|
2015-02-02 10:53:42 +01:00
|
|
|
=over 5
|
2006-04-25 02:08:20 +02:00
|
|
|
|
|
|
|
=item B<cert_path>
|
|
|
|
|
|
|
|
Path to the server certificate file. Default: I<ssl/qpsmtpd-server.crt>
|
|
|
|
|
|
|
|
=item B<priv_key_path>
|
|
|
|
|
|
|
|
Path to the private key file. Default: I<ssl/qpsmtpd-server.key>
|
|
|
|
|
|
|
|
=item B<ca_path>
|
|
|
|
|
2008-05-26 23:25:44 +02:00
|
|
|
Path to the certificate authority file. Default: I<ssl/qpsmtpd-ca.crt>
|
2005-07-08 18:50:24 +02:00
|
|
|
|
2015-02-02 10:53:42 +01:00
|
|
|
=item B<dhparam_path>
|
|
|
|
|
|
|
|
Path to the DH parameter file if you want Diffie-Hellman key exchange.
|
|
|
|
Default: I<ssl/qpsmtpd-dhparam.pem>
|
|
|
|
|
2007-09-03 17:47:08 +02:00
|
|
|
=back
|
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2006-03-01 17:44:20 +01:00
|
|
|
This plugin implements basic TLS support. It can also be used to support
|
|
|
|
port 465 (SMTP over SSL), but only with qpsmtpd-forkserver. In this case,
|
|
|
|
be sure to load plugins/tls before any other connect plugins and start
|
|
|
|
qpsmtpd like this:
|
|
|
|
|
|
|
|
qpsmtpd-forkserver --port 25 --port 465
|
|
|
|
|
|
|
|
You can also specify multiple --listen-address options as well; see the help
|
|
|
|
for qpsmtpd-forkserver for more details.
|
2005-07-08 18:50:24 +02:00
|
|
|
|
|
|
|
If TLS is successfully negotiated then the C<tls_enabled> field in the
|
|
|
|
Connection notes is set. If you wish to make TLS mandatory you should check
|
|
|
|
that field and take appropriate action. Note that you can only do that from
|
|
|
|
MAIL FROM onwards.
|
|
|
|
|
2006-01-25 15:50:47 +01:00
|
|
|
Use the script C<plugins/tls_cert> to automatically generate a self-signed
|
|
|
|
certificate with the appropriate characteristics. Otherwise, you should
|
2013-04-20 22:27:14 +02:00
|
|
|
give absolute pathnames to the certificate, key, and the CA root cert
|
2006-01-25 15:50:47 +01:00
|
|
|
used to sign that certificate.
|
|
|
|
|
2006-10-04 15:39:27 +02:00
|
|
|
=head1 CIPHERS and COMPATIBILITY
|
|
|
|
|
|
|
|
By default, we use only the plugins that openssl considers to be
|
|
|
|
"high security". If you need to tweak the available ciphers for some
|
|
|
|
broken client (such as Versamail 3.x), have a look at the available
|
|
|
|
ciphers at L<http://www.openssl.org/docs/apps/ciphers.html#CIPHER_STRINGS>,
|
|
|
|
and put a suitable string in config/tls_ciphers (e.g. "DEFAULT" or
|
|
|
|
"HIGH:MEDIUM")
|
|
|
|
|
2016-04-19 18:28:36 +02:00
|
|
|
=head1 SSL/TLS protocols versions
|
|
|
|
|
|
|
|
By default, SSLv2 and SSLv3 are not accepted, leaving only TLSv1,
|
|
|
|
TLSv1.1 or TLSv1.2 enabled. You can customize this in config/tls_protocols
|
|
|
|
For example, this will also disabled TLSv1, leaving only TLSv1.1 and TLSv1.2
|
|
|
|
|
|
|
|
SSLv23:!SSLv2:!SSLv3:!TLSv1
|
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
=cut
|
|
|
|
|
2014-09-17 20:38:40 +02:00
|
|
|
use strict;
|
|
|
|
|
2012-06-23 06:53:18 +02:00
|
|
|
use IO::Socket::SSL 0.98;
|
2005-07-08 18:50:24 +02:00
|
|
|
|
2014-09-17 20:38:40 +02:00
|
|
|
use Qpsmtpd::Constants;
|
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
sub init {
|
2015-02-02 10:53:42 +01:00
|
|
|
my ($self, $qp, $cert, $key, $ca, $dhparam) = @_;
|
2013-04-20 22:27:14 +02:00
|
|
|
my $dir = -d 'ssl' ? 'ssl' : 'config/ssl';
|
|
|
|
$cert ||= "$dir/qpsmtpd-server.crt";
|
|
|
|
$key ||= "$dir/qpsmtpd-server.key";
|
|
|
|
$ca ||= "$dir/qpsmtpd-ca.crt";
|
2015-02-02 10:53:42 +01:00
|
|
|
$dhparam ||= "$dir/qpsmtpd-dhparam.pem";
|
2013-04-21 06:50:39 +02:00
|
|
|
unless (-f $cert && -f $key && -f $ca) {
|
|
|
|
$self->log(LOGERROR,
|
|
|
|
"Cannot locate cert/key! Run plugins/tls_cert to generate");
|
2006-01-25 15:50:47 +01:00
|
|
|
return;
|
2006-01-05 03:12:46 +01:00
|
|
|
}
|
2015-02-02 13:50:37 +01:00
|
|
|
unless (-f $dhparam && -s $dhparam) {
|
|
|
|
$dhparam = undef;
|
2015-02-02 10:53:42 +01:00
|
|
|
$self->log(LOGINFO,
|
2015-02-02 13:50:37 +01:00
|
|
|
"dhparam is not exist or empty, possible DHE ciphers will be unavailable.");
|
2015-02-02 10:53:42 +01:00
|
|
|
$self->log(LOGINFO,
|
2015-02-02 11:30:54 +01:00
|
|
|
"The encryption strength will decline due to lack of Forward Secrecy.");
|
2015-02-02 10:53:42 +01:00
|
|
|
}
|
2005-07-08 18:50:24 +02:00
|
|
|
$self->tls_cert($cert);
|
|
|
|
$self->tls_key($key);
|
2006-01-25 15:50:47 +01:00
|
|
|
$self->tls_ca($ca);
|
2015-02-02 10:53:42 +01:00
|
|
|
$self->tls_dhparam($dhparam);
|
2006-10-04 15:39:27 +02:00
|
|
|
$self->tls_ciphers($self->qp->config('tls_ciphers') || 'HIGH');
|
2016-04-19 18:28:36 +02:00
|
|
|
$self->tls_protocols($self->qp->config('tls_protocols') || 'SSLv23:!SSLv2:!SSLv3');
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2013-04-21 06:50:39 +02:00
|
|
|
$self->log(LOGDEBUG, "ciphers: " . $self->tls_ciphers);
|
|
|
|
|
|
|
|
local $^W; # this bit is very noisy...
|
|
|
|
my $ssl_ctx =
|
|
|
|
IO::Socket::SSL::SSL_Context->new(
|
2016-04-19 18:28:36 +02:00
|
|
|
SSL_version => $self->tls_protocols,
|
2013-04-21 06:50:39 +02:00
|
|
|
SSL_use_cert => 1,
|
|
|
|
SSL_cert_file => $self->tls_cert,
|
|
|
|
SSL_key_file => $self->tls_key,
|
|
|
|
SSL_ca_file => $self->tls_ca,
|
2015-02-02 11:19:13 +01:00
|
|
|
SSL_dh_file => $self->tls_dhparam,
|
2013-04-21 06:50:39 +02:00
|
|
|
SSL_cipher_list => $self->tls_ciphers,
|
2015-02-02 10:37:15 +01:00
|
|
|
SSL_server => 1,
|
|
|
|
SSL_honor_cipher_order => 1
|
2013-04-21 06:50:39 +02:00
|
|
|
)
|
|
|
|
or die "Could not create SSL context: $!";
|
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
# now extract the password...
|
|
|
|
$self->ssl_context($ssl_ctx);
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2005-08-15 20:43:19 +02:00
|
|
|
# Check for possible AUTH mechanisms
|
2014-11-11 01:26:46 +01:00
|
|
|
foreach my $hook (keys %{$qp->hooks}) {
|
2005-10-07 16:30:10 +02:00
|
|
|
no strict 'refs';
|
2014-11-11 01:26:46 +01:00
|
|
|
next if $hook !~ m/^auth-?(.+)?$/;
|
|
|
|
if (defined $1) {
|
|
|
|
my $hooksub = "hook_$hook";
|
|
|
|
$hooksub =~ s/\W/_/g;
|
|
|
|
*$hooksub = \&bad_ssl_hook;
|
|
|
|
}
|
|
|
|
else { # at least one polymorphous auth provider
|
|
|
|
*hook_auth = \&bad_ssl_hook;
|
2005-08-15 20:43:19 +02:00
|
|
|
}
|
|
|
|
}
|
2005-07-08 18:50:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sub hook_ehlo {
|
|
|
|
my ($self, $transaction) = @_;
|
|
|
|
return DECLINED unless $self->can_do_tls;
|
|
|
|
return DECLINED if $self->connection->notes('tls_enabled');
|
2013-04-21 06:50:39 +02:00
|
|
|
return DENY, "Command refused due to lack of security"
|
|
|
|
if $transaction->notes('ssl_failed');
|
2012-06-23 06:53:18 +02:00
|
|
|
my $cap = $transaction->notes('capabilities') || [];
|
2005-07-08 18:50:24 +02:00
|
|
|
push @$cap, 'STARTTLS';
|
2013-04-21 06:50:39 +02:00
|
|
|
$transaction->notes('tls_enabled', 1);
|
2005-07-08 18:50:24 +02:00
|
|
|
$transaction->notes('capabilities', $cap);
|
|
|
|
return DECLINED;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub hook_unrecognized_command {
|
|
|
|
my ($self, $transaction, $cmd, @args) = @_;
|
2013-04-20 22:27:14 +02:00
|
|
|
return DECLINED unless lc $cmd eq 'starttls';
|
2005-07-08 18:50:24 +02:00
|
|
|
return DECLINED unless $transaction->notes('tls_enabled');
|
2014-11-11 01:26:46 +01:00
|
|
|
return DENY, 'Syntax error (no parameters allowed)' if @args;
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
# OK, now we setup TLS
|
2013-04-21 06:50:39 +02:00
|
|
|
$self->qp->respond(220, "Go ahead with TLS");
|
|
|
|
|
|
|
|
unless (_convert_to_ssl($self)) {
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2006-02-28 22:10:11 +01:00
|
|
|
# SSL setup failed. Now we must respond to every command with 5XX
|
2014-11-11 01:26:46 +01:00
|
|
|
warn "TLS failed: $@\n";
|
2006-02-28 22:10:11 +01:00
|
|
|
$transaction->notes('ssl_failed', 1);
|
2014-11-11 01:26:46 +01:00
|
|
|
return DENY, 'TLS Negotiation Failed';
|
2006-02-28 22:10:11 +01:00
|
|
|
}
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2014-11-11 01:26:46 +01:00
|
|
|
$self->log(LOGINFO, 'TLS setup returning');
|
2006-02-28 22:10:11 +01:00
|
|
|
return DONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub hook_connect {
|
|
|
|
my ($self, $transaction) = @_;
|
|
|
|
|
|
|
|
my $local_port = $self->qp->connection->local_port;
|
2013-04-21 23:03:24 +02:00
|
|
|
if ( ! defined $local_port || $local_port != 465 ) { # SMTPS
|
|
|
|
$self->log(LOGDEBUG, "skip, not SMTPS");
|
|
|
|
return DECLINED;
|
|
|
|
};
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2013-04-21 06:50:39 +02:00
|
|
|
unless (_convert_to_ssl($self)) {
|
2013-04-21 23:03:24 +02:00
|
|
|
$self->log(LOGINFO, "fail, unable to establish SSL");
|
2014-09-18 03:28:51 +02:00
|
|
|
return DENY_DISCONNECT, "Cannot establish SSL session";
|
2006-02-28 22:10:11 +01:00
|
|
|
}
|
2013-04-21 23:03:24 +02:00
|
|
|
$self->log(LOGINFO, "pass, connect via SMTPS");
|
2006-02-28 22:10:11 +01:00
|
|
|
return DECLINED;
|
|
|
|
}
|
|
|
|
|
2008-09-04 13:37:38 +02:00
|
|
|
sub hook_post_connection {
|
|
|
|
my ($self, $transaction) = @_;
|
|
|
|
|
|
|
|
my $tls_socket = $self->connection->notes('tls_socket');
|
2014-11-11 01:26:46 +01:00
|
|
|
return DECLINED if !defined $tls_socket;
|
|
|
|
return DECLINED if !$self->connection->notes('tls_socket_is_duped');
|
|
|
|
|
|
|
|
$tls_socket->close;
|
|
|
|
$self->connection->notes('tls_socket', undef);
|
|
|
|
$self->connection->notes('tls_socked_is_duped', 0);
|
2008-09-04 13:37:38 +02:00
|
|
|
|
|
|
|
return DECLINED;
|
|
|
|
}
|
|
|
|
|
2006-02-28 22:10:11 +01:00
|
|
|
sub _convert_to_ssl {
|
|
|
|
my ($self) = @_;
|
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
eval {
|
2013-04-21 06:50:39 +02:00
|
|
|
my $tlssocket =
|
|
|
|
IO::Socket::SSL->new_from_fd(
|
|
|
|
fileno(STDIN), '+>',
|
2016-04-19 18:28:36 +02:00
|
|
|
SSL_version => $self->tls_protocols,
|
2013-04-21 06:50:39 +02:00
|
|
|
SSL_use_cert => 1,
|
|
|
|
SSL_cert_file => $self->tls_cert,
|
|
|
|
SSL_key_file => $self->tls_key,
|
|
|
|
SSL_ca_file => $self->tls_ca,
|
2015-02-02 11:19:13 +01:00
|
|
|
SSL_dh_file => $self->tls_dhparam,
|
2013-04-21 06:50:39 +02:00
|
|
|
SSL_cipher_list => $self->tls_ciphers,
|
|
|
|
SSL_server => 1,
|
|
|
|
SSL_reuse_ctx => $self->ssl_context,
|
2015-02-02 10:37:15 +01:00
|
|
|
SSL_honor_cipher_order => 1
|
2013-04-21 06:50:39 +02:00
|
|
|
)
|
|
|
|
or die "Could not create SSL socket: $!";
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2006-01-05 03:12:46 +01:00
|
|
|
# Clone connection object (without data received from client)
|
|
|
|
$self->qp->connection($self->connection->clone());
|
2005-07-08 18:50:24 +02:00
|
|
|
$self->qp->reset_transaction;
|
|
|
|
*STDIN = *STDOUT = $self->connection->notes('tls_socket', $tlssocket);
|
2008-09-04 13:37:38 +02:00
|
|
|
$self->connection->notes('tls_socket_is_duped', 1);
|
2013-04-21 06:50:39 +02:00
|
|
|
$self->connection->notes('tls_enabled', 1);
|
2005-07-08 18:50:24 +02:00
|
|
|
};
|
|
|
|
if ($@) {
|
2008-05-05 14:22:18 +02:00
|
|
|
return 0;
|
2013-04-21 06:50:39 +02:00
|
|
|
}
|
2012-06-23 06:53:18 +02:00
|
|
|
return 1;
|
2005-07-08 18:50:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sub can_do_tls {
|
|
|
|
my ($self) = @_;
|
|
|
|
$self->tls_cert && -r $self->tls_cert;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub tls_cert {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_tls_cert} = shift;
|
|
|
|
$self->{_tls_cert};
|
|
|
|
}
|
|
|
|
|
|
|
|
sub tls_key {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_tls_key} = shift;
|
|
|
|
$self->{_tls_key};
|
|
|
|
}
|
|
|
|
|
2006-01-25 15:50:47 +01:00
|
|
|
sub tls_ca {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_tls_ca} = shift;
|
|
|
|
$self->{_tls_ca};
|
|
|
|
}
|
|
|
|
|
2015-02-02 10:53:42 +01:00
|
|
|
sub tls_dhparam {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_tls_dhparam} = shift;
|
|
|
|
$self->{_tls_dhparam};
|
|
|
|
}
|
|
|
|
|
2006-10-04 15:39:27 +02:00
|
|
|
sub tls_ciphers {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_tls_ciphers} = shift;
|
|
|
|
$self->{_tls_ciphers};
|
|
|
|
}
|
|
|
|
|
2016-04-19 18:28:36 +02:00
|
|
|
sub tls_protocols {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_tls_protocols} = shift;
|
|
|
|
$self->{_tls_protocols};
|
|
|
|
}
|
|
|
|
|
2005-07-08 18:50:24 +02:00
|
|
|
sub ssl_context {
|
|
|
|
my $self = shift;
|
|
|
|
@_ and $self->{_ssl_ctx} = shift;
|
|
|
|
$self->{_ssl_ctx};
|
|
|
|
}
|
|
|
|
|
|
|
|
# Fulfill RFC 2487 secn 5.1
|
|
|
|
sub bad_ssl_hook {
|
|
|
|
my ($self, $transaction) = @_;
|
2013-04-21 06:50:39 +02:00
|
|
|
return DENY, "Command refused due to lack of security"
|
|
|
|
if $transaction->notes('ssl_failed');
|
2005-07-18 14:51:57 +02:00
|
|
|
return DECLINED;
|
2005-07-08 18:50:24 +02:00
|
|
|
}
|
2005-08-15 20:43:19 +02:00
|
|
|
*hook_helo = *hook_data = *hook_rcpt = *hook_mail = \&bad_ssl_hook;
|
2007-09-30 15:00:32 +02:00
|
|
|
|
2008-05-05 14:22:18 +02:00
|
|
|
package UpgradeClientSSL;
|
|
|
|
|
|
|
|
# borrowed heavily from Perlbal::SocketSSL
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
2014-09-17 20:38:40 +02:00
|
|
|
no warnings 'deprecated';
|
2008-05-05 14:22:18 +02:00
|
|
|
|
2008-05-07 00:48:26 +02:00
|
|
|
use IO::Socket::SSL 0.98;
|
2008-05-05 14:22:18 +02:00
|
|
|
use Errno qw( EAGAIN );
|
|
|
|
|
|
|
|
use fields qw( _stashed_qp _stashed_plugin _ssl_started );
|
|
|
|
|
|
|
|
sub new {
|
|
|
|
my UpgradeClientSSL $self = shift;
|
|
|
|
$self = fields::new($self) unless ref $self;
|
|
|
|
$self->{_stashed_plugin} = shift;
|
2013-04-21 06:50:39 +02:00
|
|
|
$self->{_stashed_qp} = $self->{_stashed_plugin}->qp;
|
2008-05-05 14:22:18 +02:00
|
|
|
return $self;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub upgrade_socket {
|
|
|
|
my UpgradeClientSSL $self = shift;
|
|
|
|
|
2014-11-11 01:26:46 +01:00
|
|
|
if (!$self->{_ssl_started}) {
|
|
|
|
$self->event_read($self->{_stashed_qp});
|
|
|
|
return;
|
2008-05-05 14:22:18 +02:00
|
|
|
}
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2014-11-11 01:26:46 +01:00
|
|
|
$self->{_stashed_qp}->clear_data();
|
|
|
|
my $sp = $self->{_stashed_plugin};
|
|
|
|
IO::Socket::SSL->start_SSL(
|
|
|
|
$self->{_stashed_qp}->{sock}, {
|
|
|
|
SSL_use_cert => 1,
|
|
|
|
SSL_cert_file => $sp->tls_cert,
|
|
|
|
SSL_key_file => $sp->tls_key,
|
|
|
|
SSL_ca_file => $sp->tls_ca,
|
2015-02-02 10:53:42 +01:00
|
|
|
SSL_dh_file => $self->tls_dhparam,
|
2014-11-11 01:26:46 +01:00
|
|
|
SSL_cipher_list => $sp->tls_ciphers,
|
|
|
|
SSL_startHandshake => 0,
|
|
|
|
SSL_server => 1,
|
|
|
|
SSL_reuse_ctx => $sp->ssl_context,
|
2015-02-02 10:37:15 +01:00
|
|
|
SSL_honor_cipher_order => 1
|
2014-11-11 01:26:46 +01:00
|
|
|
}
|
|
|
|
)
|
|
|
|
or die "Could not upgrade socket to SSL: $!";
|
|
|
|
$self->{_ssl_started} = 1;
|
2008-05-05 14:22:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sub event_read {
|
|
|
|
my UpgradeClientSSL $self = shift;
|
|
|
|
my $qp = shift;
|
2013-04-20 22:27:14 +02:00
|
|
|
|
2013-04-21 06:50:39 +02:00
|
|
|
$qp->watch_read(0);
|
2008-05-05 14:22:18 +02:00
|
|
|
|
|
|
|
my $sock = $qp->{sock}->accept_SSL;
|
|
|
|
|
|
|
|
if (defined $sock) {
|
2013-04-21 06:50:39 +02:00
|
|
|
$qp->connection($qp->connection->clone);
|
2008-05-05 14:22:18 +02:00
|
|
|
$qp->reset_transaction;
|
2013-04-21 06:50:39 +02:00
|
|
|
$self->connection->notes('tls_socket', $sock);
|
2012-06-02 06:43:37 +02:00
|
|
|
$self->connection->notes('tls_enabled', 1);
|
2008-05-05 14:22:18 +02:00
|
|
|
$qp->watch_read(1);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# nope, let's see if we can continue the process
|
|
|
|
if ($! == EAGAIN) {
|
|
|
|
$qp->set_reader_object($self);
|
|
|
|
if ($SSL_ERROR == SSL_WANT_READ) {
|
|
|
|
$qp->watch_read(1);
|
2013-04-21 06:50:39 +02:00
|
|
|
}
|
|
|
|
elsif ($SSL_ERROR == SSL_WANT_WRITE) {
|
2008-05-05 14:22:18 +02:00
|
|
|
$qp->watch_write(1);
|
2013-04-21 06:50:39 +02:00
|
|
|
}
|
|
|
|
else {
|
2008-05-05 14:22:18 +02:00
|
|
|
$qp->disconnect();
|
|
|
|
}
|
2013-04-21 06:50:39 +02:00
|
|
|
}
|
|
|
|
else {
|
2008-05-05 14:22:18 +02:00
|
|
|
$qp->disconnect();
|
|
|
|
}
|
|
|
|
}
|