From 1a6ab202e15d1ff0995cdaaa5094ca1667eeb8bd Mon Sep 17 00:00:00 2001 From: Peter Reijnders Date: Fri, 8 Apr 2016 14:47:25 +0200 Subject: [PATCH] Changed license to MIT --- LICENSE | 367 ++++++++++++++++++++++++++++++++++ README.md | 27 +-- ape_array.c | 19 +- ape_array.h | 19 +- ape_base64.c | 19 +- ape_base64.h | 19 +- ape_blowfish.c | 1 - ape_blowfish.h | 36 ++-- ape_buffer.c | 19 +- ape_buffer.h | 19 +- ape_dns.c | 19 +- ape_dns.h | 19 +- ape_event_epoll.c | 19 +- ape_event_kqueue.c | 19 +- ape_event_select.c | 19 +- ape_events.c | 19 +- ape_events.h | 19 +- ape_events_loop.c | 19 +- ape_events_loop.h | 19 +- ape_hash.c | 19 +- ape_hash.h | 19 +- ape_pool.c | 19 +- ape_pool.h | 19 +- ape_sha1.c | 11 +- ape_sha1.h | 20 ++ ape_socket.c | 19 +- ape_socket.h | 19 +- ape_ssl.h | 6 + ape_timers_next.c | 19 +- ape_timers_next.h | 19 +- ape_websocket.c | 19 +- ape_websocket.h | 19 +- common.h | 19 +- configure | 5 + gyp/common.gypi | 4 + gyp/config.gypi | 4 + gyp/network-unittests.gyp | 4 + gyp/network.gyp | 4 + native_netlib.h | 19 +- port/POSIX.h | 21 +- port/windows.h | 21 +- tests/benchmark_new_pool.c | 6 + tests/benchmark_timers_next.c | 6 + tests/unittest.h | 6 + tests/unittest_0.cpp | 6 + tests/unittest_array.cpp | 6 + tests/unittest_base64.cpp | 6 + tests/unittest_blowfish.cpp | 6 + tests/unittest_buffer.cpp | 6 + tests/unittest_common.cpp | 6 + tests/unittest_dns.cpp | 6 + tests/unittest_events.cpp | 7 +- tests/unittest_hash.cpp | 6 + tests/unittest_lz4.cpp | 6 + tests/unittest_netlib.cpp | 6 + tests/unittest_pool.cpp | 6 + tests/unittest_sha1.cpp | 6 + tests/unittest_socket.cpp | 6 + tests/unittest_ssl.cpp | 6 + tests/unittest_timersng.cpp | 6 + tests/unittest_websocket.cpp | 6 + 61 files changed, 655 insertions(+), 510 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..45e3678 --- /dev/null +++ b/LICENSE @@ -0,0 +1,367 @@ +This Software includes third-party libraries which are listed below with their +respective licence. + +############################################################################### +libapenetwork - Fast cross-platform async network library +############################################################################### + +MIT License + +Copyright (c) 2016 Nidium Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +############################################################################### +LZ4 - Fast LZ compression algorithm +############################################################################### + +Copyright (C) 2011-2015, Yann Collet. +BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +You can contact the author at : +- LZ4 source repository : https://github.com/Cyan4973/lz4 +- LZ4 public forum : https://groups.google.com/forum/#!forum/lz4c +LZ4 - Fast LZ compression algorithm + +############################################################################### +Blowfish - Blowfish algorithm +############################################################################### +Copyright (c) 2012 Samuel Pitoiset + +loosely based on Paul Kocher's implementation + +This file is part of FFmpeg. + +FFmpeg is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +FFmpeg 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with FFmpeg; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +############################################################################### +SHA1 - FIPS-180-1 compliant SHA-1 implementation +############################################################################### +Copyright (C) 2003-2006 Christophe Devine + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License, version 2.1 as published by the Free Software Foundation. + +This library 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +MA 02110-1301 USA + +############################################################################### +C-ares - library for asynchronous DNS requests +############################################################################### +Copyright 1998 by the Massachusetts Institute of Technology. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided that +the above copyright notice appear in all copies and that both that copyright +notice and this permission notice appear in supporting documentation, and that +the name of M.I.T. not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior permission. +M.I.T. makes no representations about the suitability of this software for any +purpose. It is provided "as is" without express or implied warranty. + +############################################################################### +GYP - Generate Your Projects +############################################################################### +Copyright (c) 2009 Google Inc. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +############################################################################### +OpenSSL - Cryptography and SSL/TLS Toolkit +############################################################################### + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a dual license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. Actually both licenses are BSD-style + Open Source licenses. In case of any license issues related to OpenSSL + please contact openssl-core@openssl.org. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +############################################################################### +Zlib - A Massively Spiffy Yet Delicately Unobtrusive Compression Library +############################################################################### +Copyright notice: + + (C) 1995-2013 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + +############################################################################### +Gperftools - Google Performance Tools +############################################################################### +Copyright (c) 2005, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +############################################################################### +Gtest - Google's C++ test framework +############################################################################### +Copyright 2008, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +############################################################################### +Murmurhash2 - non-cryptographic hash function suitable for general hash-based lookup +############################################################################### +All code is released to the public domain. For business purposes, Murmurhash is +under the MIT license. + diff --git a/README.md b/README.md index fe49793..7ab0a98 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,15 @@ -# LibApeNetwork - Cross-platform Async network lib +# LibApeNetwork - Fast cross-platform async network library ## Background -This library has grown out of the Ajax Push Engine Project so that it can be used as "Async Push Engine Network Library" - -## License - -Copyright (C) 2010-2015 Anthony Catel - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library 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 -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +This project has evolved out of the Ajax Push Engine Project so that it can be used as a seperate library. ## APE C API - All public functions are defined by "APE_" (uppercase) - Non public functions are defined by "ape_" (lowercase) + +## License + +Copyright 2016 Nidium Inc. All rights reserved. +Use of this source code is governed by a MIT license that can be found in the LICENSE file. diff --git a/ape_array.c b/ape_array.c index cbdc66c..505e9f6 100644 --- a/ape_array.c +++ b/ape_array.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ //#include "common.h" diff --git a/ape_array.h b/ape_array.h index 52ac7c9..c4d9a47 100644 --- a/ape_array.h +++ b/ape_array.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_ARRAY_H diff --git a/ape_base64.c b/ape_base64.c index 7ebe788..4ef9e4b 100644 --- a/ape_base64.c +++ b/ape_base64.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include diff --git a/ape_base64.h b/ape_base64.h index ace07d3..0a3e0cc 100644 --- a/ape_base64.h +++ b/ape_base64.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_BASE64_H diff --git a/ape_blowfish.c b/ape_blowfish.c index aa3792a..7884cac 100644 --- a/ape_blowfish.c +++ b/ape_blowfish.c @@ -21,7 +21,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "ape_blowfish.h" #include #include diff --git a/ape_blowfish.h b/ape_blowfish.h index d3f757d..6c1dbe2 100644 --- a/ape_blowfish.h +++ b/ape_blowfish.h @@ -1,20 +1,24 @@ /* - Blowfish algorithm - Copyright (c) 2012 Samuel Pitoiset - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Blowfish algorithm + * Copyright (c) 2012 Samuel Pitoiset + * + * loosely based on Paul Kocher's implementation + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __APE_BLOWFISH_H diff --git a/ape_buffer.c b/ape_buffer.c index b55d621..b8efebb 100644 --- a/ape_buffer.c +++ b/ape_buffer.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "ape_buffer.h" diff --git a/ape_buffer.h b/ape_buffer.h index a6e3ed9..a73023f 100644 --- a/ape_buffer.h +++ b/ape_buffer.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_BUFFER_H_ diff --git a/ape_dns.c b/ape_dns.c index 2ac4889..50ecc9c 100644 --- a/ape_dns.c +++ b/ape_dns.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifdef _WIN32 diff --git a/ape_dns.h b/ape_dns.h index 708c197..df40585 100644 --- a/ape_dns.h +++ b/ape_dns.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_DNS_H_ diff --git a/ape_event_epoll.c b/ape_event_epoll.c index 0d414df..127c731 100644 --- a/ape_event_epoll.c +++ b/ape_event_epoll.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "common.h" diff --git a/ape_event_kqueue.c b/ape_event_kqueue.c index d0ce21d..5be6484 100644 --- a/ape_event_kqueue.c +++ b/ape_event_kqueue.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2014 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "common.h" diff --git a/ape_event_select.c b/ape_event_select.c index 6b5364c..cad03e6 100644 --- a/ape_event_select.c +++ b/ape_event_select.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "common.h" diff --git a/ape_events.c b/ape_events.c index 472bc4e..6afec07 100644 --- a/ape_events.c +++ b/ape_events.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2014 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "common.h" diff --git a/ape_events.h b/ape_events.h index 9558a47..e06ef8c 100644 --- a/ape_events.h +++ b/ape_events.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2014 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_EVENTS_H_ diff --git a/ape_events_loop.c b/ape_events_loop.c index fe22d50..f82d284 100644 --- a/ape_events_loop.c +++ b/ape_events_loop.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "common.h" diff --git a/ape_events_loop.h b/ape_events_loop.h index 1a79287..8c26947 100644 --- a/ape_events_loop.h +++ b/ape_events_loop.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_EVENTS_LOOP_H_ diff --git a/ape_hash.c b/ape_hash.c index e758542..bb61d0f 100644 --- a/ape_hash.c +++ b/ape_hash.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include diff --git a/ape_hash.h b/ape_hash.h index afd46b0..794f8ce 100644 --- a/ape_hash.h +++ b/ape_hash.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef _APE_HASH_H diff --git a/ape_pool.c b/ape_pool.c index 552da4d..41d0934 100644 --- a/ape_pool.c +++ b/ape_pool.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "ape_pool.h" diff --git a/ape_pool.h b/ape_pool.h index 2236e60..52f54a6 100644 --- a/ape_pool.h +++ b/ape_pool.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_POOL_H diff --git a/ape_sha1.c b/ape_sha1.c index 719fecc..18c917b 100644 --- a/ape_sha1.c +++ b/ape_sha1.c @@ -17,6 +17,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA */ +#include +#include + +#include "ape_sha1.h" /* * The SHA-1 standard was published by NIST in 1993. * @@ -24,12 +28,7 @@ */ -#include -#include - -#include "ape_sha1.h" - -/* +/* * 32-bit integer manipulation macros (big endian) */ #ifndef GET_UINT32_BE diff --git a/ape_sha1.h b/ape_sha1.h index 79c612e..4eaf7a4 100644 --- a/ape_sha1.h +++ b/ape_sha1.h @@ -1,3 +1,23 @@ +/* + * FIPS-180-1 compliant SHA-1 implementation + * + * Copyright (C) 2003-2006 Christophe Devine + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License, version 2.1 as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + #ifndef _SHA1_H #define _SHA1_H diff --git a/ape_socket.c b/ape_socket.c index d3df697..1bcefc5 100644 --- a/ape_socket.c +++ b/ape_socket.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "ape_socket.h" diff --git a/ape_socket.h b/ape_socket.h index 763e167..4069d0d 100644 --- a/ape_socket.h +++ b/ape_socket.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_SOCKET_H diff --git a/ape_ssl.h b/ape_ssl.h index 93a7b2b..3d16be6 100644 --- a/ape_ssl.h +++ b/ape_ssl.h @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #ifndef __APE_SSL_H #define __APE_SSL_H diff --git a/ape_timers_next.c b/ape_timers_next.c index 3ab8454..8321175 100644 --- a/ape_timers_next.c +++ b/ape_timers_next.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "ape_timers_next.h" diff --git a/ape_timers_next.h b/ape_timers_next.h index e6677d7..e957419 100644 --- a/ape_timers_next.h +++ b/ape_timers_next.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_TIMERS_NEXT_H diff --git a/ape_websocket.c b/ape_websocket.c index 151e6ec..d086d16 100644 --- a/ape_websocket.c +++ b/ape_websocket.c @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2014 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include "ape_websocket.h" diff --git a/ape_websocket.h b/ape_websocket.h index ce40b67..7b10a92 100644 --- a/ape_websocket.h +++ b/ape_websocket.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2014 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_WEBSOCKET_H diff --git a/common.h b/common.h index 1765bc8..6185bbd 100644 --- a/common.h +++ b/common.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #include diff --git a/configure b/configure index 02f0258..2a445e0 100755 --- a/configure +++ b/configure @@ -1,4 +1,9 @@ #!/usr/bin/env python2.7 + +# Copyright 2016 Nidium Inc. All rights reserved. +# Use of this source code is governed by a MIT license +# that can be found in the LICENSE file. + import os from konstructor import Deps diff --git a/gyp/common.gypi b/gyp/common.gypi index 8b36abb..e371f9e 100644 --- a/gyp/common.gypi +++ b/gyp/common.gypi @@ -1,3 +1,7 @@ +# Copyright 2016 Nidium Inc. All rights reserved. +# Use of this source code is governed by a MIT license +# that can be found in the LICENSE file. + { 'target_defaults': { 'default_configuration': 'Release', diff --git a/gyp/config.gypi b/gyp/config.gypi index ca4700c..c971e41 100644 --- a/gyp/config.gypi +++ b/gyp/config.gypi @@ -1,3 +1,7 @@ +# Copyright 2016 Nidium Inc. All rights reserved. +# Use of this source code is governed by a MIT license +# that can be found in the LICENSE file. + { 'variables' : { 'native_output%': '../out/', diff --git a/gyp/network-unittests.gyp b/gyp/network-unittests.gyp index 3d3b97f..381a427 100644 --- a/gyp/network-unittests.gyp +++ b/gyp/network-unittests.gyp @@ -1,3 +1,7 @@ +# Copyright 2016 Nidium Inc. All rights reserved. +# Use of this source code is governed by a MIT license +# that can be found in the LICENSE file. + { 'targets': [ { diff --git a/gyp/network.gyp b/gyp/network.gyp index e010faf..ba58cbc 100644 --- a/gyp/network.gyp +++ b/gyp/network.gyp @@ -1,3 +1,7 @@ +# Copyright 2016 Nidium Inc. All rights reserved. +# Use of this source code is governed by a MIT license +# that can be found in the LICENSE file. + { 'targets': [{ 'target_name': 'nativenetwork-includes', diff --git a/native_netlib.h b/native_netlib.h index 725e8df..1080ae7 100644 --- a/native_netlib.h +++ b/native_netlib.h @@ -1,20 +1,7 @@ /* - APE Network Library - Copyright (C) 2010-2013 Anthony Catel - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef _NATIVE_NETLIB_H_ diff --git a/port/POSIX.h b/port/POSIX.h index 5410405..0469e64 100644 --- a/port/POSIX.h +++ b/port/POSIX.h @@ -1,20 +1,7 @@ /* -APE Network Library -Copyright (C) 2014 Anthony Catel - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library 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 -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_PORT_POSIX_H @@ -28,4 +15,4 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define SOCKERRNO (errno) #define SET_SOCKERRNO(x) (errno = (x)) -#endif \ No newline at end of file +#endif diff --git a/port/windows.h b/port/windows.h index 43aa371..553dd90 100644 --- a/port/windows.h +++ b/port/windows.h @@ -1,20 +1,7 @@ /* -APE Network Library -Copyright (C) 2014 Anthony Catel - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library 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 -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. */ #ifndef __APE_PORT_WINDOWS_H @@ -114,4 +101,4 @@ typedef int socklen_t; #define ESTALE WSAESTALE #define EREMOTE WSAEREMOTE -#endif \ No newline at end of file +#endif diff --git a/tests/benchmark_new_pool.c b/tests/benchmark_new_pool.c index 5f16874..d385556 100644 --- a/tests/benchmark_new_pool.c +++ b/tests/benchmark_new_pool.c @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/benchmark_timers_next.c b/tests/benchmark_timers_next.c index 513ca31..953d3b5 100644 --- a/tests/benchmark_timers_next.c +++ b/tests/benchmark_timers_next.c @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest.h b/tests/unittest.h index f18d149..ec27c1a 100644 --- a/tests/unittest.h +++ b/tests/unittest.h @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #ifndef __TESTS_UNITTEST_H_ #define __TESTS_UNITTEST_H_ diff --git a/tests/unittest_0.cpp b/tests/unittest_0.cpp index 0f40588..f7a2da0 100644 --- a/tests/unittest_0.cpp +++ b/tests/unittest_0.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include "unittest.h" int ape_running; diff --git a/tests/unittest_array.cpp b/tests/unittest_array.cpp index 6a88a90..e834759 100644 --- a/tests/unittest_array.cpp +++ b/tests/unittest_array.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_base64.cpp b/tests/unittest_base64.cpp index 67c1b3e..497178f 100644 --- a/tests/unittest_base64.cpp +++ b/tests/unittest_base64.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_blowfish.cpp b/tests/unittest_blowfish.cpp index 5462f76..7c89482 100644 --- a/tests/unittest_blowfish.cpp +++ b/tests/unittest_blowfish.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_buffer.cpp b/tests/unittest_buffer.cpp index d48b935..e3f73d5 100644 --- a/tests/unittest_buffer.cpp +++ b/tests/unittest_buffer.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include "unittest.h" diff --git a/tests/unittest_common.cpp b/tests/unittest_common.cpp index 4aebdb7..d93515d 100644 --- a/tests/unittest_common.cpp +++ b/tests/unittest_common.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_dns.cpp b/tests/unittest_dns.cpp index 1bdffea..91dd958 100644 --- a/tests/unittest_dns.cpp +++ b/tests/unittest_dns.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_events.cpp b/tests/unittest_events.cpp index 65c1161..2d162a5 100644 --- a/tests/unittest_events.cpp +++ b/tests/unittest_events.cpp @@ -1,9 +1,14 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include #include "unittest.h" - #include //@TODO: int events_add(ape_event_descriptor *evd, int bitadd, ape_global *ape); diff --git a/tests/unittest_hash.cpp b/tests/unittest_hash.cpp index a190965..dcd9ed3 100644 --- a/tests/unittest_hash.cpp +++ b/tests/unittest_hash.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_lz4.cpp b/tests/unittest_lz4.cpp index e4e1148..534d8ac 100644 --- a/tests/unittest_lz4.cpp +++ b/tests/unittest_lz4.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_netlib.cpp b/tests/unittest_netlib.cpp index d56cb88..f0baa54 100644 --- a/tests/unittest_netlib.cpp +++ b/tests/unittest_netlib.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_pool.cpp b/tests/unittest_pool.cpp index e6e0cb2..0473f35 100644 --- a/tests/unittest_pool.cpp +++ b/tests/unittest_pool.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include "unittest.h" diff --git a/tests/unittest_sha1.cpp b/tests/unittest_sha1.cpp index a3c309a..41d2b13 100644 --- a/tests/unittest_sha1.cpp +++ b/tests/unittest_sha1.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_socket.cpp b/tests/unittest_socket.cpp index 9d7bd93..094d41b 100644 --- a/tests/unittest_socket.cpp +++ b/tests/unittest_socket.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_ssl.cpp b/tests/unittest_ssl.cpp index 4066027..9967d14 100644 --- a/tests/unittest_ssl.cpp +++ b/tests/unittest_ssl.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_timersng.cpp b/tests/unittest_timersng.cpp index 246961f..c424aca 100644 --- a/tests/unittest_timersng.cpp +++ b/tests/unittest_timersng.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include diff --git a/tests/unittest_websocket.cpp b/tests/unittest_websocket.cpp index fd0189f..89d6aee 100644 --- a/tests/unittest_websocket.cpp +++ b/tests/unittest_websocket.cpp @@ -1,3 +1,9 @@ +/* + Copyright 2016 Nidium Inc. All rights reserved. + Use of this source code is governed by a MIT license + that can be found in the LICENSE file. +*/ + #include #include