#include <string.h>
#include <unistd.h>
#include <signal.h>
#include "gwlib/gwlib.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 104 of file test_hash.c.
References debug(), get_and_set_debugs(), gwlib_init(), gwlib_shutdown(), md5(), md5digest(), octstr_binary_to_hex(), octstr_create, octstr_destroy(), octstr_dump, our_hash_func(), and panic.
113 panic(0,
"Syntax: %s <txt>\n", argv[0]);
124 debug(
"",0,
"MD5 (digest):");
128 OpenSSL_add_all_digests();
137 debug(
"",0,
"SHA1 (digest):");
Octstr * md5(Octstr *data)
static Octstr * our_hash_func(Octstr *os)
void octstr_binary_to_hex(Octstr *ostr, int uppercase)
#define octstr_dump(ostr, level,...)
void octstr_destroy(Octstr *ostr)
#define octstr_create(cstr)
void debug(const char *place, int err, const char *fmt,...)
void gwlib_shutdown(void)
int get_and_set_debugs(int argc, char **argv, int(*find_own)(int index, int argc, char **argv))
Octstr * md5digest(Octstr *data)