| 1 |
**************** |
| 2 |
* INTRODUCTION * |
| 3 |
**************** |
| 4 |
|
| 5 |
The vast majority of this implementation is subject to the standard |
| 6 |
3-clause BSD license. Copyright is held by Three Rings Design and |
| 7 |
Landon Fuller, and the license and official copyright can be found at |
| 8 |
the bottom of this file. |
| 9 |
|
| 10 |
Small portions of the implementation were taken from various sources, including: |
| 11 |
- FreeBSD libc (strlcpy) |
| 12 |
- FreeBSD kernel (pf ioctl validation) |
| 13 |
- kazlib (hash table implementation) |
| 14 |
- PLInstrument (test runner framework) |
| 15 |
- SenTestCase (test assertion macros) |
| 16 |
|
| 17 |
Associated copyrights and licenses are documented below. All code included |
| 18 |
in the final product are either made available under the BSD license, or |
| 19 |
under an compatible and equivalently permissive license. |
| 20 |
|
| 21 |
Some additional sources are included with this distribution and used as a part |
| 22 |
of the build process; they are not linked with the final product: |
| 23 |
- The lemon parser generator - Public Domain (http://www.hwaci.com/sw/lemon/) |
| 24 |
- Makeheaders - GPL (http://www.hwaci.com/sw/mkhdr/) |
| 25 |
|
| 26 |
*************************** |
| 27 |
* COPYRIGHTS AND LICENSES * |
| 28 |
*************************** |
| 29 |
|
| 30 |
The src/strlcpy.c and src/strlcpy.h files were taken from FreeBSD libc |
| 31 |
and are subject to the following copyright: |
| 32 |
|
| 33 |
Copyright (c) 1998 Todd C. Miller <[email protected]> |
| 34 |
All rights reserved. |
| 35 |
|
| 36 |
Please refer to the strlcpy source files for a copy of their (BSD) |
| 37 |
license. |
| 38 |
|
| 39 |
The src/hash.c and src/hash.h files were taken from kazlib, and |
| 40 |
are subject to the following copyright and license: |
| 41 |
Copyright (C) 1997 Kaz Kylheku <[email protected]> |
| 42 |
|
| 43 |
Free Software License: |
| 44 |
All rights are reserved by the author, with the following exceptions: |
| 45 |
Permission is granted to freely reproduce and distribute this software, |
| 46 |
possibly in exchange for a fee, provided that this copyright notice appears |
| 47 |
intact. Permission is also granted to adapt this software to produce |
| 48 |
derivative works, as long as the modified versions carry this copyright |
| 49 |
notice and additional notices stating that the work has been modified. |
| 50 |
This source code may be translated into executable form and incorporated |
| 51 |
into proprietary software; there is no requirement for such software to |
| 52 |
contain a copyright notice related to this source. |
| 53 |
|
| 54 |
Small portions of test/mockpf.c and test/mockpf.h were taken from the pf(4) |
| 55 |
kernel implementation. These files are used only for the unit tests, |
| 56 |
and thus not included in the final output. They are subject to the following |
| 57 |
copyright and license: |
| 58 |
|
| 59 |
Copyright (c) 2002 Cedric Berger |
| 60 |
All rights reserved. |
| 61 |
|
| 62 |
Redistribution and use in source and binary forms, with or without |
| 63 |
modification, are permitted provided that the following conditions |
| 64 |
are met: |
| 65 |
|
| 66 |
- Redistributions of source code must retain the above copyright |
| 67 |
notice, this list of conditions and the following disclaimer. |
| 68 |
- Redistributions in binary form must reproduce the above |
| 69 |
copyright notice, this list of conditions and the following |
| 70 |
disclaimer in the documentation and/or other materials provided |
| 71 |
with the distribution. |
| 72 |
|
| 73 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 74 |
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 75 |
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 76 |
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 77 |
COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 78 |
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 79 |
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 80 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 81 |
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 82 |
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| 83 |
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 84 |
POSSIBILITY OF SUCH DAMAGE. |
| 85 |
|
| 86 |
The Objective-C test framework was derived from Plausible Labs' PLInstrument. |
| 87 |
These files are used only for the unit tests, and thus not included in the |
| 88 |
final output. They are subject to the following copyright and license: |
| 89 |
|
| 90 |
Copyright (c) 2012 Landon Fuller <[email protected]> |
| 91 |
Copyright (c) 2008-2012 Plausible Labs Cooperative, Inc. |
| 92 |
All rights reserved. |
| 93 |
|
| 94 |
Permission is hereby granted, free of charge, to any person |
| 95 |
obtaining a copy of this software and associated documentation |
| 96 |
files (the "Software"), to deal in the Software without |
| 97 |
restriction, including without limitation the rights to use, |
| 98 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 99 |
copies of the Software, and to permit persons to whom the |
| 100 |
Software is furnished to do so, subject to the following |
| 101 |
conditions: |
| 102 |
|
| 103 |
The above copyright notice and this permission notice shall be |
| 104 |
included in all copies or substantial portions of the Software. |
| 105 |
|
| 106 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 107 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 108 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 109 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 110 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 111 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 112 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 113 |
OTHER DEALINGS IN THE SOFTWARE. |
| 114 |
|
| 115 |
The test/PXTestAssert.h, test/PXTestAssert.m, PXTestException.h, and |
| 116 |
PXTestException.m files provide the assertion macros used in the unit |
| 117 |
test system. These files were derived from Google's GTM project, which |
| 118 |
in turn is derived from Sen:Te's OCUnit. These files are used only for |
| 119 |
the unit tests, and thus not included in the final output. |
| 120 |
They are subject to the following copyright and license: |
| 121 |
|
| 122 |
Copyright 2007-2008 Google Inc. |
| 123 |
|
| 124 |
Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 125 |
use this file except in compliance with the License. You may obtain a copy |
| 126 |
of the License at |
| 127 |
|
| 128 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 129 |
|
| 130 |
Unless required by applicable law or agreed to in writing, software |
| 131 |
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 132 |
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 133 |
License for the specific language governing permissions and limitations under |
| 134 |
the License. |
| 135 |
|
| 136 |
Portions of this file fall under the following license, marked with |
| 137 |
SENTE_BEGIN - SENTE_END |
| 138 |
|
| 139 |
Copyright (c) 1997-2005, Sen:te (Sente SA). All rights reserved. |
| 140 |
|
| 141 |
Use of this source code is governed by the following license: |
| 142 |
|
| 143 |
Redistribution and use in source and binary forms, with or without modification, |
| 144 |
are permitted provided that the following conditions are met: |
| 145 |
|
| 146 |
(1) Redistributions of source code must retain the above copyright notice, |
| 147 |
this list of conditions and the following disclaimer. |
| 148 |
|
| 149 |
(2) Redistributions in binary form must reproduce the above copyright notice, |
| 150 |
this list of conditions and the following disclaimer in the documentation |
| 151 |
and/or other materials provided with the distribution. |
| 152 |
|
| 153 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' |
| 154 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 155 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 156 |
IN NO EVENT SHALL Sente SA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 157 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
| 158 |
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 159 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 160 |
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 161 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 162 |
|
| 163 |
Note: this license is equivalent to the FreeBSD license. |
| 164 |
|
| 165 |
All other code is subject to the following copyright and license: |
| 166 |
|
| 167 |
Copyright (c) 2006 - 2007 Three Rings Design, Inc. |
| 168 |
Copyright (c) 2005 - 2012 Landon Fuller <[email protected]> |
| 169 |
All rights reserved. |
| 170 |
|
| 171 |
Redistribution and use in source and binary forms, with or without |
| 172 |
modification, are permitted provided that the following conditions |
| 173 |
are met: |
| 174 |
1. Redistributions of source code must retain the above copyright |
| 175 |
notice, this list of conditions and the following disclaimer. |
| 176 |
2. Redistributions in binary form must reproduce the above copyright |
| 177 |
notice, this list of conditions and the following disclaimer in the |
| 178 |
documentation and/or other materials provided with the distribution. |
| 179 |
3. Neither the name of the copyright holders nor the names of any |
| 180 |
contributors may be used to endorse or promote products derived |
| 181 |
from this software without specific prior written permission. |
| 182 |
|
| 183 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 184 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 185 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 186 |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 187 |
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 188 |
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 189 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 190 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 191 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 192 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 193 |
POSSIBILITY OF SUCH DAMAGE. |