skel stuff for smtp function;

master
Alexander Vdolainen 4 years ago
parent caa3b7c413
commit 1b399ffdbb

@ -15,7 +15,7 @@ else
bin_PROGRAMS = ejabberdauth bin_PROGRAMS = ejabberdauth
endif 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) ejabberdauth_LDADD = $(LIBS) $(OPENSSL_LIBS)

@ -0,0 +1,41 @@
/*
* ejabberd external authentication program
*
* (c) Alexander Vdolainen 2013, 2018, 2019, 2021 <alex@vapaa.xyz>
*
* 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 <http://www.gnu.org/licenses/>.";
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/select.h>
#include <errno.h>
#include <netdb.h>
#include <string.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <eport.h>
#include <tlsport.h>
int smtp_checkuser(struct tlsport *p, struct ejabber_msg *m, const char *host)
{
return -1;
}
Loading…
Cancel
Save