From 4dbc730656002f93cbbc0824e4b2d46d1ede6983 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 16 Sep 2013 14:56:54 +0000 Subject: licence updates diff --git a/LICENSE b/LICENSE index 9e88ab1..742c46c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/Makefile b/Makefile index 81956ea..940ee0a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ ## ## rhctl ## -## Copyright (C) 2009 Christian Pointner +## Copyright (C) 2009-2013 Christian Pointner ## ## This file is part of rhctl. ## diff --git a/client_list.c b/client_list.c index ff86878..187d458 100644 --- a/client_list.c +++ b/client_list.c @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/client_list.h b/client_list.h index 428188e..1be6bb3 100644 --- a/client_list.h +++ b/client_list.h @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/command_queue.c b/command_queue.c index 0351f5c..8c697db 100644 --- a/command_queue.c +++ b/command_queue.c @@ -1,22 +1,22 @@ /* - * door_daemon + * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * - * This file is part of door_daemon. + * This file is part of rhctl. * - * door_daemon is free software: you can redistribute it and/or modify + * rhctl 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 3 of the License, or * any later version. * - * door_daemon is distributed in the hope that it will be useful, + * rhctl 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 door_daemon. If not, see . + * along with rhctl. If not, see . */ #include @@ -27,7 +27,7 @@ cmd_t* cmd_get_last(cmd_t* first) { - if(!first) + if(!first) return NULL; while(first->next) { @@ -66,7 +66,7 @@ int cmd_push(cmd_t** first, int fd, cmd_id_t cmd, const char* param) *first = new_cmd; return 0; } - + cmd_get_last(*first)->next = new_cmd; return 0; @@ -93,7 +93,7 @@ int cmd_has_expired(cmd_t cmd) void cmd_pop(cmd_t** first) { - if(!first || !(*first)) + if(!first || !(*first)) return; cmd_t* deletee = *first; @@ -105,7 +105,7 @@ void cmd_pop(cmd_t** first) void cmd_clear(cmd_t** first) { - if(!first || !(*first)) + if(!first || !(*first)) return; while(*first) { diff --git a/command_queue.h b/command_queue.h index dbd2091..8424791 100644 --- a/command_queue.h +++ b/command_queue.h @@ -1,22 +1,22 @@ /* - * door_daemon + * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * - * This file is part of door_daemon. + * This file is part of rhctl. * - * door_daemon is free software: you can redistribute it and/or modify + * rhctl 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 3 of the License, or * any later version. * - * door_daemon is distributed in the hope that it will be useful, + * rhctl 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 door_daemon. If not, see . + * along with rhctl. If not, see . */ #ifndef RHCTL_command_queue_h_INCLUDED diff --git a/configure b/configure index 10bb04d..4834b85 100755 --- a/configure +++ b/configure @@ -3,7 +3,7 @@ # # rhctl # -# Copyright (C) 2009 Christian Pointner +# Copyright (C) 2009-2013 Christian Pointner # # This file is part of rhctl. # diff --git a/datatypes.h b/datatypes.h index e38d121..1eae397 100644 --- a/datatypes.h +++ b/datatypes.h @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/heartbeatclient.c b/heartbeatclient.c index 162660b..7fb12bb 100644 --- a/heartbeatclient.c +++ b/heartbeatclient.c @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/key_value_storage.c b/key_value_storage.c index 7f4b584..05dc288 100644 --- a/key_value_storage.c +++ b/key_value_storage.c @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * @@ -48,11 +48,11 @@ int key_value_storage_add(key_value_storage_t* stor, const char* key, const char return -1; int ret = string_list_add(&(stor->keys_), key); - if(ret!=0) + if(ret!=0) return ret; ret = string_list_add(&(stor->values_), value); - if(ret!=0) + if(ret!=0) return ret; return 0; @@ -68,7 +68,7 @@ char* key_value_storage_find(key_value_storage_t* stor, const char* key) while(v && k) { if(!strcmp(k->string_, key)) return v->string_; - + k = k->next_; v = v->next_; } diff --git a/key_value_storage.h b/key_value_storage.h index bf7a493..2b5a734 100644 --- a/key_value_storage.h +++ b/key_value_storage.h @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/l_cmd.c b/l_cmd.c index 338b377..fccb857 100644 --- a/l_cmd.c +++ b/l_cmd.c @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/l_cmd.h b/l_cmd.h index 2080b9f..45d95c2 100644 --- a/l_cmd.h +++ b/l_cmd.h @@ -1,7 +1,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner + * Copyright (C) 2009-2013 Christian Pointner * * This file is part of rhctl. * diff --git a/l_log.c b/l_log.c index 528fe95..4ccf18d 100644 --- a/l_log.c +++ b/l_log.c @@ -1,14 +1,14 @@ /* * anylike * - * anylike is an IKEv2 Implementation written in Lua and C. It's main - * design goal is to provide anytun and uanytun or any other SATP - * implementation with a key exchange mechanism but it should also be - * possible to use anylike as key exchange daemon for IPSec security - * associations. The use of Lua guarantees that anylike is easily - * portable to many platforms including very small ones like wireless + * anylike is an IKEv2 Implementation written in Lua and C. It's main + * design goal is to provide anytun and uanytun or any other SATP + * implementation with a key exchange mechanism but it should also be + * possible to use anylike as key exchange daemon for IPSec security + * associations. The use of Lua guarantees that anylike is easily + * portable to many platforms including very small ones like wireless * routers. - * + * * * Copyright (C) 2009-2010 Markus Grueneis * Christian Pointner @@ -63,7 +63,7 @@ static int l_log_add_target(lua_State *L) default: lua_pushstring(L, "syntax error"); break; } return 2; - } + } lua_pushboolean(L, 1); return 1; @@ -83,22 +83,22 @@ static int l_log_printf(lua_State *L) lua_remove(L, -1); lua_call(L, numargs - 1, 1); } - + log_prio_t prio = luaL_checkint(L,1); log_printf(prio, "%s", luaL_checkstring(L, 2)); return 0; } static const struct luaL_reg log_funcs [] = { - { "init", l_log_init }, - { "close", l_log_close }, + { "init", l_log_init }, + { "close", l_log_close }, { "add_target", l_log_add_target }, { "printf", l_log_printf }, { NULL, NULL } }; -LUALIB_API int luaopen_log(lua_State *L) +LUALIB_API int luaopen_log(lua_State *L) { luaL_register(L, LUA_LOGLIBNAME, log_funcs); lua_pushliteral(L, "ERROR"); diff --git a/l_log.h b/l_log.h index 8750a7a..c564c62 100644 --- a/l_log.h +++ b/l_log.h @@ -1,14 +1,14 @@ /* * anylike * - * anylike is an IKEv2 Implementation written in Lua and C. It's main - * design goal is to provide anytun and uanytun or any other SATP - * implementation with a key exchange mechanism but it should also be - * possible to use anylike as key exchange daemon for IPSec security - * associations. The use of Lua guarantees that anylike is easily - * portable to many platforms including very small ones like wireless + * anylike is an IKEv2 Implementation written in Lua and C. It's main + * design goal is to provide anytun and uanytun or any other SATP + * implementation with a key exchange mechanism but it should also be + * possible to use anylike as key exchange daemon for IPSec security + * associations. The use of Lua guarantees that anylike is easily + * portable to many platforms including very small ones like wireless * routers. - * + * * * Copyright (C) 2009-2010 Markus Grueneis * Christian Pointner diff --git a/l_sig_handler.c b/l_sig_handler.c index 0bdcffc..1be30ce 100644 --- a/l_sig_handler.c +++ b/l_sig_handler.c @@ -1,14 +1,14 @@ /* * anylike * - * anylike is an IKEv2 Implementation written in Lua and C. It's main - * design goal is to provide anytun and uanytun or any other SATP - * implementation with a key exchange mechanism but it should also be - * possible to use anylike as key exchange daemon for IPSec security - * associations. The use of Lua guarantees that anylike is easily - * portable to many platforms including very small ones like wireless + * anylike is an IKEv2 Implementation written in Lua and C. It's main + * design goal is to provide anytun and uanytun or any other SATP + * implementation with a key exchange mechanism but it should also be + * possible to use anylike as key exchange daemon for IPSec security + * associations. The use of Lua guarantees that anylike is easily + * portable to many platforms including very small ones like wireless * routers. - * + * * * Copyright (C) 2009-2010 Markus Grueneis * Christian Pointner @@ -42,7 +42,7 @@ static int l_signal_getfd(lua_State *L) luaL_error(L, "can't retreive signal fd"); lua_pushliteral(L, "fd"); - lua_gettable(L, -2); + lua_gettable(L, -2); return 1; } @@ -85,14 +85,14 @@ static int l_signal_handle(lua_State *L) } static const struct luaL_reg signal_funcs [] = { - { "init", l_signal_init }, - { "stop", l_signal_stop }, + { "init", l_signal_init }, + { "stop", l_signal_stop }, { "handle", l_signal_handle }, { NULL, NULL } }; -LUALIB_API int luaopen_signal(lua_State *L) +LUALIB_API int luaopen_signal(lua_State *L) { luaL_register(L, LUA_SIGNALLIBNAME, signal_funcs); return 1; diff --git a/l_sig_handler.h b/l_sig_handler.h index 06a5f75..447b95e 100644 --- a/l_sig_handler.h +++ b/l_sig_handler.h @@ -1,14 +1,14 @@ /* * anylike * - * anylike is an IKEv2 Implementation written in Lua and C. It's main - * design goal is to provide anytun and uanytun or any other SATP - * implementation with a key exchange mechanism but it should also be - * possible to use anylike as key exchange daemon for IPSec security - * associations. The use of Lua guarantees that anylike is easily - * portable to many platforms including very small ones like wireless + * anylike is an IKEv2 Implementation written in Lua and C. It's main + * design goal is to provide anytun and uanytun or any other SATP + * implementation with a key exchange mechanism but it should also be + * possible to use anylike as key exchange daemon for IPSec security + * associations. The use of Lua guarantees that anylike is easily + * portable to many platforms including very small ones like wireless * routers. - * + * * * Copyright (C) 2009-2010 Markus Grueneis * Christian Pointner diff --git a/log.c b/log.c index 62bc6af..661f9a2 100644 --- a/log.c +++ b/log.c @@ -13,7 +13,7 @@ * message authentication based on the methodes used by SRTP. It is * intended to deliver a generic, scaleable and secure solution for * tunneling and relaying of packets of any protocol. - * + * * * Copyright (C) 2007-2010 Christian Pointner * diff --git a/log.h b/log.h index 17de487..e9f35dc 100644 --- a/log.h +++ b/log.h @@ -13,7 +13,7 @@ * message authentication based on the methodes used by SRTP. It is * intended to deliver a generic, scaleable and secure solution for * tunneling and relaying of packets of any protocol. - * + * * * Copyright (C) 2007-2010 Christian Pointner * diff --git a/log_targets.h b/log_targets.h index 4a19d8e..b6c3ae5 100644 --- a/log_targets.h +++ b/log_targets.h @@ -13,7 +13,7 @@ * message authentication based on the methodes used by SRTP. It is * intended to deliver a generic, scaleable and secure solution for * tunneling and relaying of packets of any protocol. - * + * * * Copyright (C) 2007-2010 Christian Pointner * @@ -42,7 +42,7 @@ static char* get_time_formatted() { char* time_string; time_t t = time(NULL); - if(t < 0) + if(t < 0) time_string = "