c skel for interface has been added;
This commit is contained in:
		
							parent
							
								
									bf6659b477
								
							
						
					
					
						commit
						df530fde68
					
				| @ -25,7 +25,7 @@ | |||||||
| #define MAX_DOMAIN_LEN  128 | #define MAX_DOMAIN_LEN  128 | ||||||
| #define MAX_PASSWORD_LEN  128 | #define MAX_PASSWORD_LEN  128 | ||||||
| 
 | 
 | ||||||
| struct ejabbermsg { | struct ejabber_msg { | ||||||
|   int action; |   int action; | ||||||
|   char user[MAX_USER_LEN]; |   char user[MAX_USER_LEN]; | ||||||
|   char domain[MAX_DOMAIN_LEN]; |   char domain[MAX_DOMAIN_LEN]; | ||||||
|  | |||||||
| @ -11,7 +11,7 @@ AM_CFLAGS = -Wall -g | |||||||
| 
 | 
 | ||||||
| bin_PROGRAMS = ejabberdauth | bin_PROGRAMS = ejabberdauth | ||||||
| 
 | 
 | ||||||
| ejabberdauth_SOURCES = main.c | ejabberdauth_SOURCES = main.c eport.c | ||||||
| 
 | 
 | ||||||
| ejabberdauth_LDADD = $(LIBS) $(OPENSSL_LIBS) | ejabberdauth_LDADD = $(LIBS) $(OPENSSL_LIBS) | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										40
									
								
								src/eport.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								src/eport.c
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,40 @@ | |||||||
|  | /*
 | ||||||
|  |  * 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 <stdint.h> | ||||||
|  | 
 | ||||||
|  | #include <ejabbermsg.h> | ||||||
|  | 
 | ||||||
|  | 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; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user