diff --git a/include/ejabbermsg.h b/include/ejabbermsg.h index a493ac8..09a9451 100644 --- a/include/ejabbermsg.h +++ b/include/ejabbermsg.h @@ -25,7 +25,7 @@ #define MAX_DOMAIN_LEN 128 #define MAX_PASSWORD_LEN 128 -struct ejabbermsg { +struct ejabber_msg { int action; char user[MAX_USER_LEN]; char domain[MAX_DOMAIN_LEN]; diff --git a/src/Makefile.am b/src/Makefile.am index 546feb2..cf7df87 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,7 +11,7 @@ AM_CFLAGS = -Wall -g bin_PROGRAMS = ejabberdauth -ejabberdauth_SOURCES = main.c +ejabberdauth_SOURCES = main.c eport.c ejabberdauth_LDADD = $(LIBS) $(OPENSSL_LIBS) diff --git a/src/eport.c b/src/eport.c new file mode 100644 index 0000000..7bef688 --- /dev/null +++ b/src/eport.c @@ -0,0 +1,40 @@ +/* + * 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 + +size_t eport_read(FILE *stream, char *buffer, size_t buffer_size) +{ + return 0; +} + +size_t eport_write(FILE *stream, char *buffer, size_t buffer_size) +{ + return 0; +} + +int eport_ejabberd_msgread(char *buffer, size_t buffer_size, + struct ejabber_msg *m) +{ + return 0; +}