3 Copyright (c) 2014, Peter Thorson. All rights reserved.
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of the WebSocket++ Project nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 ARE DISCLAIMED. IN NO EVENT SHALL PETER THORSON BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 ****** Base 64 Library (base64/base64.hpp) ******
30 base64.hpp is a repackaging of the base64.cpp and base64.h files into a
31 single header suitable for use as a header only library. This conversion was
32 done by Peter Thorson (webmaster@zaphoyd.com) in 2012. All modifications to
33 the code are redistributed under the same license as the original, which is
36 base64.cpp and base64.h
38 Copyright (C) 2004-2008 René Nyffenegger
40 This source code is provided 'as-is', without any express or implied
41 warranty. In no event will the author be held liable for any damages
42 arising from the use of this software.
44 Permission is granted to anyone to use this software for any purpose,
45 including commercial applications, and to alter it and redistribute it
46 freely, subject to the following restrictions:
48 1. The origin of this source code must not be misrepresented; you must not
49 claim that you wrote the original source code. If you use this source code
50 in a product, an acknowledgment in the product documentation would be
51 appreciated but is not required.
53 2. Altered source versions must be plainly marked as such, and must not be
54 misrepresented as being the original source code.
56 3. This notice may not be removed or altered from any source distribution.
58 René Nyffenegger rene.nyffenegger@adp-gmbh.ch
60 ****** SHA1 Library (sha1/sha1.hpp) ******
61 sha1.hpp is a repackaging of the sha1.cpp and sha1.h files from the shallsha1
62 library (http://code.google.com/p/smallsha1/) into a single header suitable for
63 use as a header only library. This conversion was done by Peter Thorson
64 (webmaster@zaphoyd.com) in 2013. All modifications to the code are redistributed
65 under the same license as the original, which is listed below.
67 Copyright (c) 2011, Micael Hildenborg
70 Redistribution and use in source and binary forms, with or without
71 modification, are permitted provided that the following conditions are met:
72 * Redistributions of source code must retain the above copyright
73 notice, this list of conditions and the following disclaimer.
74 * Redistributions in binary form must reproduce the above copyright
75 notice, this list of conditions and the following disclaimer in the
76 documentation and/or other materials provided with the distribution.
77 * Neither the name of Micael Hildenborg nor the
78 names of its contributors may be used to endorse or promote products
79 derived from this software without specific prior written permission.
81 THIS SOFTWARE IS PROVIDED BY Micael Hildenborg ''AS IS'' AND ANY
82 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
83 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
84 DISCLAIMED. IN NO EVENT SHALL Micael Hildenborg BE LIABLE FOR ANY
85 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
86 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
87 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
88 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
89 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
90 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
92 ****** MD5 Library (common/md5.hpp) ******
93 md5.hpp is a reformulation of the md5.h and md5.c code from
94 http://www.opensource.apple.com/source/cups/cups-59/cups/md5.c to allow it to
95 function as a component of a header only library. This conversion was done by
96 Peter Thorson (webmaster@zaphoyd.com) in 2012 for the WebSocket++ project. The
97 changes are released under the same license as the original (listed below)
99 Copyright (C) 1999, 2002 Aladdin Enterprises. All rights reserved.
101 This software is provided 'as-is', without any express or implied
102 warranty. In no event will the authors be held liable for any damages
103 arising from the use of this software.
105 Permission is granted to anyone to use this software for any purpose,
106 including commercial applications, and to alter it and redistribute it
107 freely, subject to the following restrictions:
109 1. The origin of this software must not be misrepresented; you must not
110 claim that you wrote the original software. If you use this software
111 in a product, an acknowledgment in the product documentation would be
112 appreciated but is not required.
113 2. Altered source versions must be plainly marked as such, and must not be
114 misrepresented as being the original software.
115 3. This notice may not be removed or altered from any source distribution.
120 ****** UTF8 Validation logic (utf8_validation.hpp) ******
121 utf8_validation.hpp is adapted from code originally written by Bjoern Hoehrmann
122 <bjoern@hoehrmann.de>. See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for
125 The original license:
127 Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
129 Permission is hereby granted, free of charge, to any person obtaining a copy
130 of this software and associated documentation files (the "Software"), to deal
131 in the Software without restriction, including without limitation the rights
132 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
133 copies of the Software, and to permit persons to whom the Software is
134 furnished to do so, subject to the following conditions:
136 The above copyright notice and this permission notice shall be included in
137 all copies or substantial portions of the Software.
139 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
140 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
141 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
142 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
143 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
144 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE