Fix auth and tls in light of globalised hooks

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@874 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Matt Sergeant 2008-04-08 10:34:25 +00:00
parent ddc1b91964
commit d0d7412f22
3 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,8 @@ sub TRACE_LEVEL { $TraceLevel }; # leave for plugin compatibility
my $LOGGING_LOADED = 0;
sub hooks { $hooks; }
sub load_logging {
# need to do this differently that other plugins so as to
# not trigger logging activity

View File

@ -219,7 +219,7 @@ sub ehlo_respond {
: ();
# Check for possible AUTH mechanisms
HOOK: foreach my $hook ( keys %{$self->{hooks}} ) {
HOOK: foreach my $hook ( keys %{$self->hooks} ) {
if ( $hook =~ m/^auth-?(.+)?$/ ) {
if ( defined $1 ) {
$auth_mechanisms{uc($1)} = 1;

View File

@ -91,7 +91,7 @@ sub init {
$self->ssl_context($ssl_ctx);
# Check for possible AUTH mechanisms
HOOK: foreach my $hook ( keys %{$qp->{hooks}} ) {
HOOK: foreach my $hook ( keys %{$qp->hooks} ) {
no strict 'refs';
if ( $hook =~ m/^auth-?(.+)?$/ ) {
if ( defined $1 ) {