24 lines
412 B
C
24 lines
412 B
C
#include <stdlib.h>
|
|
|
|
#include <cli.h>
|
|
|
|
#include "ft_ssl.h"
|
|
|
|
char *g_prog_name = NULL;
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
struct ssl_config config = {0};
|
|
int ret = CLI_ERROR;
|
|
|
|
g_prog_name = argv[0];
|
|
cli_set_prog_name(g_prog_name);
|
|
ret = cli_parse_arguments(argc, argv, &config);
|
|
if (CLI_SUCCESS != ret)
|
|
goto cleanup;
|
|
ret = ssl_run(&config);
|
|
|
|
cleanup:
|
|
return (CLI_ERROR == ret) ? 2 : EXIT_SUCCESS;
|
|
}
|