]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/charon-tkm/src/ehandler/eh_callbacks.c
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / charon-tkm / src / ehandler / eh_callbacks.c
1 /*
2 * Copyright (C) 2012 Reto Buerki
3 * Copyright (C) 2012 Adrian-Ken Rueegsegger
4 *
5 * Copyright (C) secunet Security Networks AG
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 */
17
18 #include <sys/types.h>
19 #include <signal.h>
20 #include <utils/debug.h>
21
22 #include "eh_callbacks.h"
23
24 void charon_terminate(char *msg)
25 {
26 DBG1(DBG_DMN, "critical TKM error, terminating!");
27 DBG1(DBG_DMN, msg);
28 kill(0, SIGTERM);
29 }