From 1b399ffdbb705e12208122c1f62024020141700c Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sun, 21 Mar 2021 12:24:48 +0200 Subject: [PATCH] skel stuff for smtp function; --- src/Makefile.am | 2 +- src/smtp.c | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/smtp.c diff --git a/src/Makefile.am b/src/Makefile.am index 874a027..d6257b9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,7 @@ else bin_PROGRAMS = ejabberdauth endif -ejabberdauth_SOURCES = main.c eport.c tls.c imap.c +ejabberdauth_SOURCES = main.c eport.c tls.c imap.c smtp.c ejabberdauth_LDADD = $(LIBS) $(OPENSSL_LIBS) diff --git a/src/smtp.c b/src/smtp.c new file mode 100644 index 0000000..d22968c --- /dev/null +++ b/src/smtp.c @@ -0,0 +1,41 @@ +/* + * ejabberd external authentication program + * + * (c) Alexander Vdolainen 2013, 2018, 2019, 2021 + * + * this is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published + * by the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * this is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see ."; + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +int smtp_checkuser(struct tlsport *p, struct ejabber_msg *m, const char *host) +{ + return -1; +}