2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* WPA Supplicant / main() function for UNIX like OSes and MinGW
|
2013-05-18 10:00:05 +02:00
|
|
|
* Copyright (c) 2003-2013, Jouni Malinen <j@w1.fi>
|
2008-02-28 02:34:43 +01:00
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "includes.h"
|
|
|
|
#ifdef __linux__
|
|
|
|
#include <fcntl.h>
|
|
|
|
#endif /* __linux__ */
|
|
|
|
|
|
|
|
#include "common.h"
|
2022-04-16 17:48:29 +02:00
|
|
|
#include "crypto/crypto.h"
|
2014-11-16 16:28:53 +01:00
|
|
|
#include "fst/fst.h"
|
2008-02-28 02:34:43 +01:00
|
|
|
#include "wpa_supplicant_i.h"
|
2009-03-26 19:37:05 +01:00
|
|
|
#include "driver_i.h"
|
2013-06-30 09:17:47 +02:00
|
|
|
#include "p2p_supplicant.h"
|
2009-03-26 19:37:05 +01:00
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
static void usage(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
printf("%s\n\n%s\n"
|
|
|
|
"usage:\n"
|
2014-01-21 00:03:15 +01:00
|
|
|
" wpa_supplicant [-BddhKLqq"
|
|
|
|
#ifdef CONFIG_DEBUG_SYSLOG
|
|
|
|
"s"
|
|
|
|
#endif /* CONFIG_DEBUG_SYSLOG */
|
|
|
|
"t"
|
2019-02-26 12:04:36 +01:00
|
|
|
#ifdef CONFIG_CTRL_IFACE_DBUS_NEW
|
2014-01-21 00:03:15 +01:00
|
|
|
"u"
|
2019-02-26 12:04:36 +01:00
|
|
|
#endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
|
2014-01-21 00:03:15 +01:00
|
|
|
"vW] [-P<pid file>] "
|
2008-02-28 02:34:43 +01:00
|
|
|
"[-g<global ctrl>] \\\n"
|
2013-05-18 10:00:05 +02:00
|
|
|
" [-G<group>] \\\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
" -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] "
|
|
|
|
"[-p<driver_param>] \\\n"
|
2014-01-21 00:03:15 +01:00
|
|
|
" [-b<br_ifname>] [-e<entropy file>]"
|
|
|
|
#ifdef CONFIG_DEBUG_FILE
|
|
|
|
" [-f<debug file>]"
|
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
|
|
|
" \\\n"
|
2009-11-04 19:16:15 +01:00
|
|
|
" [-o<override driver>] [-O<override ctrl>] \\\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
" [-N -i<ifname> -c<conf> [-C<ctrl>] "
|
|
|
|
"[-D<driver>] \\\n"
|
2013-09-02 14:41:00 +02:00
|
|
|
#ifdef CONFIG_P2P
|
|
|
|
" [-m<P2P Device config file>] \\\n"
|
|
|
|
#endif /* CONFIG_P2P */
|
2013-04-23 16:38:57 +02:00
|
|
|
" [-p<driver_param>] [-b<br_ifname>] [-I<config file>] "
|
|
|
|
"...]\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
"\n"
|
|
|
|
"drivers:\n",
|
|
|
|
wpa_supplicant_version, wpa_supplicant_license);
|
|
|
|
|
2009-04-09 12:40:12 +02:00
|
|
|
for (i = 0; wpa_drivers[i]; i++) {
|
2008-02-28 02:34:43 +01:00
|
|
|
printf(" %s = %s\n",
|
2009-04-09 12:40:12 +02:00
|
|
|
wpa_drivers[i]->name,
|
|
|
|
wpa_drivers[i]->desc);
|
2008-02-28 02:34:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef CONFIG_NO_STDOUT_DEBUG
|
|
|
|
printf("options:\n"
|
|
|
|
" -b = optional bridge interface name\n"
|
|
|
|
" -B = run daemon in the background\n"
|
|
|
|
" -c = Configuration file\n"
|
|
|
|
" -C = ctrl_interface parameter (only used if -c is not)\n"
|
|
|
|
" -d = increase debugging verbosity (-dd even more)\n"
|
2011-05-31 19:07:11 +02:00
|
|
|
" -D = driver name (can be multiple drivers: nl80211,wext)\n"
|
2016-01-14 16:35:25 +01:00
|
|
|
" -e = entropy file\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
#ifdef CONFIG_DEBUG_FILE
|
2016-01-14 16:35:25 +01:00
|
|
|
" -f = log output to debug file instead of stdout\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
2016-01-14 16:35:25 +01:00
|
|
|
" -g = global ctrl_interface\n"
|
2013-05-18 10:00:05 +02:00
|
|
|
" -G = global ctrl_interface group\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
" -h = show this help text\n"
|
2016-01-14 16:35:25 +01:00
|
|
|
" -i = interface name\n"
|
|
|
|
" -I = additional configuration file\n"
|
|
|
|
" -K = include keys (passwords, etc.) in debug output\n"
|
2012-02-11 13:04:12 +01:00
|
|
|
" -L = show license (BSD)\n"
|
2016-01-14 16:35:25 +01:00
|
|
|
#ifdef CONFIG_P2P
|
|
|
|
" -m = Configuration file for the P2P Device interface\n"
|
|
|
|
#endif /* CONFIG_P2P */
|
2016-03-15 14:40:14 +01:00
|
|
|
#ifdef CONFIG_MATCH_IFACE
|
|
|
|
" -M = start describing new matching interface\n"
|
|
|
|
#endif /* CONFIG_MATCH_IFACE */
|
2016-01-14 16:35:25 +01:00
|
|
|
" -N = start describing new interface\n"
|
2009-11-04 19:16:15 +01:00
|
|
|
" -o = override driver parameter for new interfaces\n"
|
|
|
|
" -O = override ctrl_interface parameter for new interfaces\n"
|
2009-02-15 13:35:30 +01:00
|
|
|
" -p = driver parameters\n"
|
2008-02-28 02:34:43 +01:00
|
|
|
" -P = PID file\n"
|
2016-01-14 16:35:25 +01:00
|
|
|
" -q = decrease debugging verbosity (-qq even less)\n"
|
|
|
|
#ifdef CONFIG_DEBUG_SYSLOG
|
|
|
|
" -s = log output to syslog instead of stdout\n"
|
|
|
|
#endif /* CONFIG_DEBUG_SYSLOG */
|
|
|
|
" -t = include timestamp in debug messages\n"
|
|
|
|
#ifdef CONFIG_DEBUG_LINUX_TRACING
|
|
|
|
" -T = record to Linux tracing in addition to logging\n"
|
|
|
|
" (records all messages regardless of debug verbosity)\n"
|
|
|
|
#endif /* CONFIG_DEBUG_LINUX_TRACING */
|
2019-02-26 12:04:36 +01:00
|
|
|
#ifdef CONFIG_CTRL_IFACE_DBUS_NEW
|
2016-01-14 16:35:25 +01:00
|
|
|
" -u = enable DBus control interface\n"
|
2019-02-26 12:04:36 +01:00
|
|
|
#endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
|
2016-01-14 16:35:25 +01:00
|
|
|
" -v = show version\n"
|
|
|
|
" -W = wait for a control interface monitor before starting\n");
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
printf("example:\n"
|
2009-03-02 20:40:44 +01:00
|
|
|
" wpa_supplicant -D%s -iwlan0 -c/etc/wpa_supplicant.conf\n",
|
2013-04-29 15:55:44 +02:00
|
|
|
wpa_drivers[0] ? wpa_drivers[0]->name : "nl80211");
|
2008-02-28 02:34:43 +01:00
|
|
|
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void license(void)
|
|
|
|
{
|
|
|
|
#ifndef CONFIG_NO_STDOUT_DEBUG
|
|
|
|
printf("%s\n\n%s%s%s%s%s\n",
|
|
|
|
wpa_supplicant_version,
|
|
|
|
wpa_supplicant_full_license1,
|
|
|
|
wpa_supplicant_full_license2,
|
|
|
|
wpa_supplicant_full_license3,
|
|
|
|
wpa_supplicant_full_license4,
|
|
|
|
wpa_supplicant_full_license5);
|
|
|
|
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-08-19 17:01:04 +02:00
|
|
|
static void wpa_supplicant_fd_workaround(int start)
|
2008-02-28 02:34:43 +01:00
|
|
|
{
|
|
|
|
#ifdef __linux__
|
2012-08-19 17:01:04 +02:00
|
|
|
static int fd[3] = { -1, -1, -1 };
|
|
|
|
int i;
|
2008-02-28 02:34:43 +01:00
|
|
|
/* When started from pcmcia-cs scripts, wpa_supplicant might start with
|
|
|
|
* fd 0, 1, and 2 closed. This will cause some issues because many
|
|
|
|
* places in wpa_supplicant are still printing out to stdout. As a
|
|
|
|
* workaround, make sure that fd's 0, 1, and 2 are not used for other
|
|
|
|
* sockets. */
|
2012-08-19 17:01:04 +02:00
|
|
|
if (start) {
|
|
|
|
for (i = 0; i < 3; i++) {
|
|
|
|
fd[i] = open("/dev/null", O_RDWR);
|
|
|
|
if (fd[i] > 2) {
|
|
|
|
close(fd[i]);
|
|
|
|
fd[i] = -1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
for (i = 0; i < 3; i++) {
|
|
|
|
if (fd[i] >= 0) {
|
|
|
|
close(fd[i]);
|
|
|
|
fd[i] = -1;
|
|
|
|
}
|
2008-02-28 02:34:43 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* __linux__ */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-03-15 14:40:14 +01:00
|
|
|
#ifdef CONFIG_MATCH_IFACE
|
|
|
|
static int wpa_supplicant_init_match(struct wpa_global *global)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* The assumption is that the first driver is the primary driver and
|
|
|
|
* will handle the arrival / departure of interfaces.
|
|
|
|
*/
|
|
|
|
if (wpa_drivers[0]->global_init && !global->drv_priv[0]) {
|
|
|
|
global->drv_priv[0] = wpa_drivers[0]->global_init(global);
|
|
|
|
if (!global->drv_priv[0]) {
|
|
|
|
wpa_printf(MSG_ERROR,
|
|
|
|
"Failed to initialize driver '%s'",
|
|
|
|
wpa_drivers[0]->name);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_MATCH_IFACE */
|
|
|
|
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int c, i;
|
|
|
|
struct wpa_interface *ifaces, *iface;
|
|
|
|
int iface_count, exitcode = -1;
|
|
|
|
struct wpa_params params;
|
|
|
|
struct wpa_global *global;
|
|
|
|
|
|
|
|
if (os_program_init())
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
os_memset(¶ms, 0, sizeof(params));
|
|
|
|
params.wpa_debug_level = MSG_INFO;
|
|
|
|
|
|
|
|
iface = ifaces = os_zalloc(sizeof(struct wpa_interface));
|
|
|
|
if (ifaces == NULL)
|
|
|
|
return -1;
|
|
|
|
iface_count = 1;
|
|
|
|
|
2012-08-19 17:01:04 +02:00
|
|
|
wpa_supplicant_fd_workaround(1);
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
for (;;) {
|
2012-03-31 12:55:33 +02:00
|
|
|
c = getopt(argc, argv,
|
2016-03-15 14:40:14 +01:00
|
|
|
"b:Bc:C:D:de:f:g:G:hi:I:KLMm:No:O:p:P:qsTtuvW");
|
2008-02-28 02:34:43 +01:00
|
|
|
if (c < 0)
|
|
|
|
break;
|
|
|
|
switch (c) {
|
|
|
|
case 'b':
|
|
|
|
iface->bridge_ifname = optarg;
|
|
|
|
break;
|
|
|
|
case 'B':
|
|
|
|
params.daemonize++;
|
|
|
|
break;
|
|
|
|
case 'c':
|
|
|
|
iface->confname = optarg;
|
|
|
|
break;
|
|
|
|
case 'C':
|
|
|
|
iface->ctrl_interface = optarg;
|
|
|
|
break;
|
|
|
|
case 'D':
|
|
|
|
iface->driver = optarg;
|
|
|
|
break;
|
|
|
|
case 'd':
|
|
|
|
#ifdef CONFIG_NO_STDOUT_DEBUG
|
|
|
|
printf("Debugging disabled with "
|
|
|
|
"CONFIG_NO_STDOUT_DEBUG=y build time "
|
|
|
|
"option.\n");
|
|
|
|
goto out;
|
|
|
|
#else /* CONFIG_NO_STDOUT_DEBUG */
|
|
|
|
params.wpa_debug_level--;
|
|
|
|
break;
|
|
|
|
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
2011-05-31 19:07:11 +02:00
|
|
|
case 'e':
|
|
|
|
params.entropy_file = optarg;
|
|
|
|
break;
|
2008-02-28 02:34:43 +01:00
|
|
|
#ifdef CONFIG_DEBUG_FILE
|
|
|
|
case 'f':
|
|
|
|
params.wpa_debug_file_path = optarg;
|
|
|
|
break;
|
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
|
|
|
case 'g':
|
|
|
|
params.ctrl_interface = optarg;
|
|
|
|
break;
|
2013-05-18 10:00:05 +02:00
|
|
|
case 'G':
|
|
|
|
params.ctrl_interface_group = optarg;
|
|
|
|
break;
|
2008-02-28 02:34:43 +01:00
|
|
|
case 'h':
|
|
|
|
usage();
|
|
|
|
exitcode = 0;
|
|
|
|
goto out;
|
|
|
|
case 'i':
|
|
|
|
iface->ifname = optarg;
|
|
|
|
break;
|
2013-04-23 16:38:57 +02:00
|
|
|
case 'I':
|
|
|
|
iface->confanother = optarg;
|
|
|
|
break;
|
2008-02-28 02:34:43 +01:00
|
|
|
case 'K':
|
|
|
|
params.wpa_debug_show_keys++;
|
|
|
|
break;
|
|
|
|
case 'L':
|
|
|
|
license();
|
|
|
|
exitcode = 0;
|
|
|
|
goto out;
|
2013-09-02 14:41:00 +02:00
|
|
|
#ifdef CONFIG_P2P
|
|
|
|
case 'm':
|
2015-06-17 15:18:20 +02:00
|
|
|
params.conf_p2p_dev = optarg;
|
2013-09-02 14:41:00 +02:00
|
|
|
break;
|
|
|
|
#endif /* CONFIG_P2P */
|
2009-11-04 19:16:15 +01:00
|
|
|
case 'o':
|
|
|
|
params.override_driver = optarg;
|
|
|
|
break;
|
|
|
|
case 'O':
|
|
|
|
params.override_ctrl_interface = optarg;
|
|
|
|
break;
|
2008-02-28 02:34:43 +01:00
|
|
|
case 'p':
|
|
|
|
iface->driver_param = optarg;
|
|
|
|
break;
|
|
|
|
case 'P':
|
|
|
|
os_free(params.pid_file);
|
|
|
|
params.pid_file = os_rel2abs_path(optarg);
|
|
|
|
break;
|
|
|
|
case 'q':
|
|
|
|
params.wpa_debug_level++;
|
|
|
|
break;
|
2009-03-02 20:40:44 +01:00
|
|
|
#ifdef CONFIG_DEBUG_SYSLOG
|
|
|
|
case 's':
|
|
|
|
params.wpa_debug_syslog++;
|
|
|
|
break;
|
|
|
|
#endif /* CONFIG_DEBUG_SYSLOG */
|
2012-03-31 12:55:33 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LINUX_TRACING
|
|
|
|
case 'T':
|
|
|
|
params.wpa_debug_tracing++;
|
|
|
|
break;
|
|
|
|
#endif /* CONFIG_DEBUG_LINUX_TRACING */
|
2008-02-28 02:34:43 +01:00
|
|
|
case 't':
|
|
|
|
params.wpa_debug_timestamp++;
|
|
|
|
break;
|
2019-02-26 12:04:36 +01:00
|
|
|
#ifdef CONFIG_CTRL_IFACE_DBUS_NEW
|
2008-02-28 02:34:43 +01:00
|
|
|
case 'u':
|
|
|
|
params.dbus_ctrl_interface = 1;
|
|
|
|
break;
|
2019-02-26 12:04:36 +01:00
|
|
|
#endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
|
2008-02-28 02:34:43 +01:00
|
|
|
case 'v':
|
|
|
|
printf("%s\n", wpa_supplicant_version);
|
|
|
|
exitcode = 0;
|
|
|
|
goto out;
|
|
|
|
case 'W':
|
|
|
|
params.wait_for_monitor++;
|
|
|
|
break;
|
2016-03-15 14:40:14 +01:00
|
|
|
#ifdef CONFIG_MATCH_IFACE
|
|
|
|
case 'M':
|
|
|
|
params.match_iface_count++;
|
|
|
|
iface = os_realloc_array(params.match_ifaces,
|
|
|
|
params.match_iface_count,
|
|
|
|
sizeof(struct wpa_interface));
|
|
|
|
if (!iface)
|
|
|
|
goto out;
|
|
|
|
params.match_ifaces = iface;
|
|
|
|
iface = ¶ms.match_ifaces[params.match_iface_count -
|
|
|
|
1];
|
|
|
|
os_memset(iface, 0, sizeof(*iface));
|
|
|
|
break;
|
|
|
|
#endif /* CONFIG_MATCH_IFACE */
|
2008-02-28 02:34:43 +01:00
|
|
|
case 'N':
|
|
|
|
iface_count++;
|
2012-08-13 20:21:23 +02:00
|
|
|
iface = os_realloc_array(ifaces, iface_count,
|
|
|
|
sizeof(struct wpa_interface));
|
2008-02-28 02:34:43 +01:00
|
|
|
if (iface == NULL)
|
|
|
|
goto out;
|
|
|
|
ifaces = iface;
|
2014-11-16 16:28:53 +01:00
|
|
|
iface = &ifaces[iface_count - 1];
|
2008-02-28 02:34:43 +01:00
|
|
|
os_memset(iface, 0, sizeof(*iface));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
usage();
|
|
|
|
exitcode = 0;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exitcode = 0;
|
|
|
|
global = wpa_supplicant_init(¶ms);
|
|
|
|
if (global == NULL) {
|
|
|
|
wpa_printf(MSG_ERROR, "Failed to initialize wpa_supplicant");
|
|
|
|
exitcode = -1;
|
|
|
|
goto out;
|
2012-04-06 10:52:17 +02:00
|
|
|
} else {
|
|
|
|
wpa_printf(MSG_INFO, "Successfully initialized "
|
|
|
|
"wpa_supplicant");
|
2008-02-28 02:34:43 +01:00
|
|
|
}
|
|
|
|
|
2014-11-16 16:28:53 +01:00
|
|
|
if (fst_global_init()) {
|
|
|
|
wpa_printf(MSG_ERROR, "Failed to initialize FST");
|
|
|
|
exitcode = -1;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
|
|
|
|
#if defined(CONFIG_FST) && defined(CONFIG_CTRL_IFACE)
|
|
|
|
if (!fst_global_add_ctrl(fst_ctrl_cli))
|
|
|
|
wpa_printf(MSG_WARNING, "Failed to add CLI FST ctrl");
|
|
|
|
#endif
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
for (i = 0; exitcode == 0 && i < iface_count; i++) {
|
2013-06-30 09:17:47 +02:00
|
|
|
struct wpa_supplicant *wpa_s;
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
if ((ifaces[i].confname == NULL &&
|
|
|
|
ifaces[i].ctrl_interface == NULL) ||
|
|
|
|
ifaces[i].ifname == NULL) {
|
|
|
|
if (iface_count == 1 && (params.ctrl_interface ||
|
2016-03-15 14:40:14 +01:00
|
|
|
#ifdef CONFIG_MATCH_IFACE
|
|
|
|
params.match_iface_count ||
|
|
|
|
#endif /* CONFIG_MATCH_IFACE */
|
2008-02-28 02:34:43 +01:00
|
|
|
params.dbus_ctrl_interface))
|
|
|
|
break;
|
|
|
|
usage();
|
|
|
|
exitcode = -1;
|
|
|
|
break;
|
|
|
|
}
|
2015-03-01 20:50:34 +01:00
|
|
|
wpa_s = wpa_supplicant_add_iface(global, &ifaces[i], NULL);
|
2013-06-30 09:17:47 +02:00
|
|
|
if (wpa_s == NULL) {
|
|
|
|
exitcode = -1;
|
|
|
|
break;
|
|
|
|
}
|
2008-02-28 02:34:43 +01:00
|
|
|
}
|
|
|
|
|
2016-03-15 14:40:14 +01:00
|
|
|
#ifdef CONFIG_MATCH_IFACE
|
|
|
|
if (exitcode == 0)
|
|
|
|
exitcode = wpa_supplicant_init_match(global);
|
|
|
|
#endif /* CONFIG_MATCH_IFACE */
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
if (exitcode == 0)
|
|
|
|
exitcode = wpa_supplicant_run(global);
|
|
|
|
|
|
|
|
wpa_supplicant_deinit(global);
|
|
|
|
|
2014-11-16 16:28:53 +01:00
|
|
|
fst_global_deinit();
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
out:
|
2012-08-19 17:01:04 +02:00
|
|
|
wpa_supplicant_fd_workaround(0);
|
2008-02-28 02:34:43 +01:00
|
|
|
os_free(ifaces);
|
2016-03-15 14:40:14 +01:00
|
|
|
#ifdef CONFIG_MATCH_IFACE
|
|
|
|
os_free(params.match_ifaces);
|
|
|
|
#endif /* CONFIG_MATCH_IFACE */
|
2008-02-28 02:34:43 +01:00
|
|
|
os_free(params.pid_file);
|
|
|
|
|
2022-04-16 17:48:29 +02:00
|
|
|
crypto_unload();
|
2008-02-28 02:34:43 +01:00
|
|
|
os_program_deinit();
|
|
|
|
|
|
|
|
return exitcode;
|
|
|
|
}
|