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:
parent
ddc1b91964
commit
d0d7412f22
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user