| 1 |
/* |
| 2 |
* anytun |
| 3 |
* |
| 4 |
* The secure anycast tunneling protocol (satp) defines a protocol used |
| 5 |
* for communication between any combination of unicast and anycast |
| 6 |
* tunnel endpoints. It has less protocol overhead than IPSec in Tunnel |
| 7 |
* mode and allows tunneling of every ETHER TYPE protocol (e.g. |
| 8 |
* ethernet, ip, arp ...). satp directly includes cryptography and |
| 9 |
* message authentication based on the methods used by SRTP. It is |
| 10 |
* intended to deliver a generic, scaleable and secure solution for |
| 11 |
* tunneling and relaying of packets of any protocol. |
| 12 |
* |
| 13 |
* |
| 14 |
* Copyright (C) 2007-2014 Markus Grüneis, Othmar Gsenger, Erwin Nindl, |
| 15 |
* Christian Pointner <[email protected]> |
| 16 |
* |
| 17 |
* This file is part of Anytun. |
| 18 |
* |
| 19 |
* Anytun is free software: you can redistribute it and/or modify |
| 20 |
* it under the terms of the GNU General Public License as published by |
| 21 |
* the Free Software Foundation, either version 3 of the License, or |
| 22 |
* any later version. |
| 23 |
* |
| 24 |
* Anytun is distributed in the hope that it will be useful, |
| 25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
* GNU General Public License for more details. |
| 28 |
* |
| 29 |
* You should have received a copy of the GNU General Public License |
| 30 |
* along with Anytun. If not, see <http://www.gnu.org/licenses/>. |
| 31 |
* |
| 32 |
* In addition, as a special exception, the copyright holders give |
| 33 |
* permission to link the code of portions of this program with the |
| 34 |
* OpenSSL library under certain conditions as described in each |
| 35 |
* individual source file, and distribute linked combinations |
| 36 |
* including the two. |
| 37 |
* You must obey the GNU General Public License in all respects |
| 38 |
* for all of the code used other than OpenSSL. If you modify |
| 39 |
* file(s) with this exception, you may extend this exception to your |
| 40 |
* version of the file(s), but you are not obligated to do so. If you |
| 41 |
* do not wish to do so, delete this exception statement from your |
| 42 |
* version. If you delete this exception statement from all source |
| 43 |
* files in the program, then also delete it here. |
| 44 |
*/ |
| 45 |
|
| 46 |
Certain source files in this program permit linking with the OpenSSL |
| 47 |
library (http://www.openssl.org), which otherwise wouldn't be allowed |
| 48 |
under the GPL. For purposes of identifying OpenSSL, most source files |
| 49 |
giving this permission limit it to versions of OpenSSL having a license |
| 50 |
identical to that listed in this file (LICENSE.OpenSSL). It is not |
| 51 |
necessary for the copyright years to match between this file and the |
| 52 |
OpenSSL version in question. However, note that because this file is |
| 53 |
an extension of the license statements of these source files, this file |
| 54 |
may not be changed except with permission from all copyright holders |
| 55 |
of source files in this program which reference this file. |
| 56 |
|
| 57 |
|
| 58 |
LICENSE ISSUES |
| 59 |
============== |
| 60 |
|
| 61 |
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of |
| 62 |
the OpenSSL License and the original SSLeay license apply to the toolkit. |
| 63 |
See below for the actual license texts. Actually both licenses are BSD-style |
| 64 |
Open Source licenses. In case of any license issues related to OpenSSL |
| 65 |
please contact [email protected]. |
| 66 |
|
| 67 |
OpenSSL License |
| 68 |
--------------- |
| 69 |
|
| 70 |
/* ==================================================================== |
| 71 |
* Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. |
| 72 |
* |
| 73 |
* Redistribution and use in source and binary forms, with or without |
| 74 |
* modification, are permitted provided that the following conditions |
| 75 |
* are met: |
| 76 |
* |
| 77 |
* 1. Redistributions of source code must retain the above copyright |
| 78 |
* notice, this list of conditions and the following disclaimer. |
| 79 |
* |
| 80 |
* 2. Redistributions in binary form must reproduce the above copyright |
| 81 |
* notice, this list of conditions and the following disclaimer in |
| 82 |
* the documentation and/or other materials provided with the |
| 83 |
* distribution. |
| 84 |
* |
| 85 |
* 3. All advertising materials mentioning features or use of this |
| 86 |
* software must display the following acknowledgment: |
| 87 |
* "This product includes software developed by the OpenSSL Project |
| 88 |
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)" |
| 89 |
* |
| 90 |
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to |
| 91 |
* endorse or promote products derived from this software without |
| 92 |
* prior written permission. For written permission, please contact |
| 93 |
* [email protected]. |
| 94 |
* |
| 95 |
* 5. Products derived from this software may not be called "OpenSSL" |
| 96 |
* nor may "OpenSSL" appear in their names without prior written |
| 97 |
* permission of the OpenSSL Project. |
| 98 |
* |
| 99 |
* 6. Redistributions of any form whatsoever must retain the following |
| 100 |
* acknowledgment: |
| 101 |
* "This product includes software developed by the OpenSSL Project |
| 102 |
* for use in the OpenSSL Toolkit (http://www.openssl.org/)" |
| 103 |
* |
| 104 |
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY |
| 105 |
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 106 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 107 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR |
| 108 |
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 109 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 110 |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 111 |
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 112 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 113 |
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 114 |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 115 |
* OF THE POSSIBILITY OF SUCH DAMAGE. |
| 116 |
* ==================================================================== |
| 117 |
* |
| 118 |
* This product includes cryptographic software written by Eric Young |
| 119 |
* ([email protected]). This product includes software written by Tim |
| 120 |
* Hudson ([email protected]). |
| 121 |
* |
| 122 |
*/ |
| 123 |
|
| 124 |
Original SSLeay License |
| 125 |
----------------------- |
| 126 |
|
| 127 |
/* Copyright (C) 1995-1998 Eric Young ([email protected]) |
| 128 |
* All rights reserved. |
| 129 |
* |
| 130 |
* This package is an SSL implementation written |
| 131 |
* by Eric Young ([email protected]). |
| 132 |
* The implementation was written so as to conform with Netscapes SSL. |
| 133 |
* |
| 134 |
* This library is free for commercial and non-commercial use as long as |
| 135 |
* the following conditions are aheared to. The following conditions |
| 136 |
* apply to all code found in this distribution, be it the RC4, RSA, |
| 137 |
* lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 138 |
* included with this distribution is covered by the same copyright terms |
| 139 |
* except that the holder is Tim Hudson ([email protected]). |
| 140 |
* |
| 141 |
* Copyright remains Eric Young's, and as such any Copyright notices in |
| 142 |
* the code are not to be removed. |
| 143 |
* If this package is used in a product, Eric Young should be given attribution |
| 144 |
* as the author of the parts of the library used. |
| 145 |
* This can be in the form of a textual message at program startup or |
| 146 |
* in documentation (online or textual) provided with the package. |
| 147 |
* |
| 148 |
* Redistribution and use in source and binary forms, with or without |
| 149 |
* modification, are permitted provided that the following conditions |
| 150 |
* are met: |
| 151 |
* 1. Redistributions of source code must retain the copyright |
| 152 |
* notice, this list of conditions and the following disclaimer. |
| 153 |
* 2. Redistributions in binary form must reproduce the above copyright |
| 154 |
* notice, this list of conditions and the following disclaimer in the |
| 155 |
* documentation and/or other materials provided with the distribution. |
| 156 |
* 3. All advertising materials mentioning features or use of this software |
| 157 |
* must display the following acknowledgement: |
| 158 |
* "This product includes cryptographic software written by |
| 159 |
* Eric Young ([email protected])" |
| 160 |
* The word 'cryptographic' can be left out if the rouines from the library |
| 161 |
* being used are not cryptographic related :-). |
| 162 |
* 4. If you include any Windows specific code (or a derivative thereof) from |
| 163 |
* the apps directory (application code) you must include an acknowledgement: |
| 164 |
* "This product includes software written by Tim Hudson ([email protected])" |
| 165 |
* |
| 166 |
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 167 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 168 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 169 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
| 170 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 171 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 172 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 173 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 174 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 175 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 176 |
* SUCH DAMAGE. |
| 177 |
* |
| 178 |
* The licence and distribution terms for any publically available version or |
| 179 |
* derivative of this code cannot be changed. i.e. this code cannot simply be |
| 180 |
* copied and put under another distribution licence |
| 181 |
* [including the GNU Public Licence.] |
| 182 |
*/ |