diff options
author | Christian Pointner <equinox@anytun.org> | 2010-01-02 15:08:14 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-01-02 15:08:14 +0000 |
commit | 982d6be40fbb6761c928714fba2758bc8c512fdf (patch) | |
tree | b307634c69f1d9499c808679eb4c99b3de6a3eb2 | |
parent | moved form include file ot own object for lua bytecode (diff) |
fixed build with own object for lua bytecodelua
-rw-r--r-- | tools/bin2c.lua | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/tools/bin2c.lua b/tools/bin2c.lua index 0607fae..7129b06 100644 --- a/tools/bin2c.lua +++ b/tools/bin2c.lua @@ -1,32 +1,33 @@ -- --- anylike +-- anytun -- --- 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. --- +-- The secure anycast tunneling protocol (satp) defines a protocol used +-- for communication between any combination of unicast and anycast +-- tunnel endpoints. It has less protocol overhead than IPSec in Tunnel +-- mode and allows tunneling of every ETHER TYPE protocol (e.g. +-- ethernet, ip, arp ...). satp directly includes cryptography and +-- 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-2008 Markus Grueneis <gimpf@anylike.org> --- Christian Pointner <equinox@anylike.org> -- --- This file is part of anylike. +-- Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, +-- Christian Pointner <satp@wirdorange.org> -- --- anylike is free software: you can redistribute it and/or modify +-- This file is part of Anytun. +-- +-- Anytun 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. -- --- anylike is distributed in the hope that it will be useful, +-- Anytun 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 anylike. If not, see <http://www.gnu.org/licenses/>. +-- along with anytun. If not, see <http://www.gnu.org/licenses/>. -- -- -- the following is inspired by BinTwoCee from the lua-users wiki. @@ -52,8 +53,9 @@ end io.write([=[ /* code automatically generated by bin2c -- DO NOT EDIT */ -static const char ]=] , c_var_name, [=[[]={ +extern const char ]=] , c_var_name, [=[[]={ ]=], dump(content), [=[ }; +extern const int ]=] , c_var_name, [=[_len = sizeof(]=] , c_var_name, [=[); ]=]) |