41 lines
1003 B
C
Raw Normal View History

2021-03-15 22:56:11 +02:00
/*
* 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>
2021-03-20 14:28:17 +02:00
#include <eport.h>
unsigned long djb_hash(const char *s)
{
unsigned long hash = 5381;
int c;
while((c = *s++))
hash = ((hash << 5) + hash) + c;
return hash;
}
2021-03-15 22:56:11 +02:00
int main(int argc, char **argv)
{
2021-03-20 14:28:17 +02:00
2021-03-15 22:56:11 +02:00
return 0;
}