Added skel for test eport function;

master
Alexander Vdolainen 4 years ago
parent 1aff05ea29
commit 5e009b70d3

1
src/.gitignore vendored

@ -2,3 +2,4 @@ ejabberdauth
.deps
testimap
testsmtp
testeport

@ -10,7 +10,7 @@ AM_CPPFLAGS = \
AM_CFLAGS = -Wall -g
if BUILD_TESTS
bin_PROGRAMS = ejabberdauth testimap testsmtp
bin_PROGRAMS = ejabberdauth testimap testsmtp testeport
else
bin_PROGRAMS = ejabberdauth
endif
@ -27,5 +27,9 @@ testimap_LDADD = $(LIBS) $(OPENSSL_LIBS)
testsmtp_SOURCES = tls.c smtp.c tests/misc.c tests/testsmtp.c
testsmtp_LDADD = $(LIBS) $(OPENSSL_LIBS)
testeport_SOURCES = eport.c tests/misc.c tests/testeport.c
testeport_LDADD = $(LIBS)
endif

@ -0,0 +1,47 @@
/*
* 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 <stdarg.h>
#include <getopt.h>
#include <ejabbermsg.h>
#include <eport.h>
#define PRG_NAME "ejabberauth erlang port function test"
extern int ejda_username_split(char *buf, char **user, char **domain);
int main(int argc, char **argv)
{
return 0;
}
Loading…
Cancel
Save