izmjene licence
[ossec-hids.git] / LICENSE
1
2  Copyright (C) 2003 - 2013 Trend Micro Inc. All rights reserved.
3
4  OSSEC HIDS is a free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License (version 2) as
6  published by the FSF - Free Software Foundation.
7
8  In addition, certain source files in this program permit linking with the
9  OpenSSL library (http://www.openssl.org), which otherwise wouldn't be allowed
10  under the GPL.  For purposes of identifying OpenSSL, most source files giving
11  this permission limit it to versions of OpenSSL having a license identical to
12  that listed in this file (see section "OpenSSL LICENSE" below). It is not
13  necessary for the copyright years to match between this file and the OpenSSL
14  version in question.  However, note that because this file is an extension of
15  the license statements of these source files, this file may not be changed
16  except with permission from all copyright holders of source files in this
17  program which reference this file.
18  
19  Note that this license applies to the source code, as well as
20  decoders, rules and any other data file included with OSSEC (unless
21  otherwise specified).
22
23  For the purpose of this license, we consider an application to constitute a 
24  "derivative work" or a work based on this program if it does any of the
25  following (list not exclusive):
26
27   * Integrates source code/data files from OSSEC.
28   * Includes OSSEC copyrighted material.
29   * Includes/integrates OSSEC into a proprietary executable installer.
30   * Links to a library or executes a program that does any of the above.
31
32  This list is not exclusive, but just a clarification of our interpretation
33  of derived works. These restrictions only apply if you actually redistribute
34  OSSEC (or parts of it).
35
36  We don't consider these to be added restrictions on top of the GPL, 
37  but just a clarification of how we interpret "derived works" as it 
38  applies to OSSEC. This is similar to the way Linus Torvalds has
39  announced his interpretation of how "derived works" applies to Linux kernel
40  modules. Our interpretation refers only to OSSEC - we don't speak
41  for any other GPL products. 
42
43   * As a special exception, the copyright holders give
44   * permission to link the code of portions of this program with the
45   * OpenSSL library under certain conditions as described in each
46   * individual source file, and distribute linked combinations
47   * including the two.
48   * You must obey the GNU General Public License in all respects
49   * for all of the code used other than OpenSSL.  If you modify
50   * file(s) with this exception, you may extend this exception to your
51   * version of the file(s), but you are not obligated to do so.  If you
52   * do not wish to do so, delete this exception statement from your
53   * version.  If you delete this exception statement from all source
54   * files in the program, then also delete it here.
55
56  OSSEC HIDS is distributed in the hope that it will be useful, but WITHOUT
57  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
58  FITNESS FOR A PARTICULAR PURPOSE.
59  See the GNU General Public License Version 2 below for more details.
60
61 -----------------------------------------------------------------------------
62
63                     GNU GENERAL PUBLIC LICENSE
64                        Version 2, June 1991
65
66  Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
67  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
68  Everyone is permitted to copy and distribute verbatim copies
69  of this license document, but changing it is not allowed.
70
71                             Preamble
72
73   The licenses for most software are designed to take away your
74 freedom to share and change it.  By contrast, the GNU General Public
75 License is intended to guarantee your freedom to share and change free
76 software--to make sure the software is free for all its users.  This
77 General Public License applies to most of the Free Software
78 Foundation's software and to any other program whose authors commit to
79 using it.  (Some other Free Software Foundation software is covered by
80 the GNU Lesser General Public License instead.)  You can apply it to
81 your programs, too.
82
83   When we speak of free software, we are referring to freedom, not
84 price.  Our General Public Licenses are designed to make sure that you
85 have the freedom to distribute copies of free software (and charge for
86 this service if you wish), that you receive source code or can get it
87 if you want it, that you can change the software or use pieces of it
88 in new free programs; and that you know you can do these things.
89
90   To protect your rights, we need to make restrictions that forbid
91 anyone to deny you these rights or to ask you to surrender the rights.
92 These restrictions translate to certain responsibilities for you if you
93 distribute copies of the software, or if you modify it.
94
95   For example, if you distribute copies of such a program, whether
96 gratis or for a fee, you must give the recipients all the rights that
97 you have.  You must make sure that they, too, receive or can get the
98 source code.  And you must show them these terms so they know their
99 rights.
100
101   We protect your rights with two steps: (1) copyright the software, and
102 (2) offer you this license which gives you legal permission to copy,
103 distribute and/or modify the software.
104
105   Also, for each author's protection and ours, we want to make certain
106 that everyone understands that there is no warranty for this free
107 software.  If the software is modified by someone else and passed on, we
108 want its recipients to know that what they have is not the original, so
109 that any problems introduced by others will not reflect on the original
110 authors' reputations.
111
112   Finally, any free program is threatened constantly by software
113 patents.  We wish to avoid the danger that redistributors of a free
114 program will individually obtain patent licenses, in effect making the
115 program proprietary.  To prevent this, we have made it clear that any
116 patent must be licensed for everyone's free use or not licensed at all.
117
118   The precise terms and conditions for copying, distribution and
119 modification follow.
120
121                     GNU GENERAL PUBLIC LICENSE
122    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
123
124   0. This License applies to any program or other work which contains
125 a notice placed by the copyright holder saying it may be distributed
126 under the terms of this General Public License.  The "Program", below,
127 refers to any such program or work, and a "work based on the Program"
128 means either the Program or any derivative work under copyright law:
129 that is to say, a work containing the Program or a portion of it,
130 either verbatim or with modifications and/or translated into another
131 language.  (Hereinafter, translation is included without limitation in
132 the term "modification".)  Each licensee is addressed as "you".
133
134 Activities other than copying, distribution and modification are not
135 covered by this License; they are outside its scope.  The act of
136 running the Program is not restricted, and the output from the Program
137 is covered only if its contents constitute a work based on the
138 Program (independent of having been made by running the Program).
139 Whether that is true depends on what the Program does.
140
141   1. You may copy and distribute verbatim copies of the Program's
142 source code as you receive it, in any medium, provided that you
143 conspicuously and appropriately publish on each copy an appropriate
144 copyright notice and disclaimer of warranty; keep intact all the
145 notices that refer to this License and to the absence of any warranty;
146 and give any other recipients of the Program a copy of this License
147 along with the Program.
148
149 You may charge a fee for the physical act of transferring a copy, and
150 you may at your option offer warranty protection in exchange for a fee.
151
152   2. You may modify your copy or copies of the Program or any portion
153 of it, thus forming a work based on the Program, and copy and
154 distribute such modifications or work under the terms of Section 1
155 above, provided that you also meet all of these conditions:
156
157     a) You must cause the modified files to carry prominent notices
158     stating that you changed the files and the date of any change.
159
160     b) You must cause any work that you distribute or publish, that in
161     whole or in part contains or is derived from the Program or any
162     part thereof, to be licensed as a whole at no charge to all third
163     parties under the terms of this License.
164
165     c) If the modified program normally reads commands interactively
166     when run, you must cause it, when started running for such
167     interactive use in the most ordinary way, to print or display an
168     announcement including an appropriate copyright notice and a
169     notice that there is no warranty (or else, saying that you provide
170     a warranty) and that users may redistribute the program under
171     these conditions, and telling the user how to view a copy of this
172     License.  (Exception: if the Program itself is interactive but
173     does not normally print such an announcement, your work based on
174     the Program is not required to print an announcement.)
175
176 These requirements apply to the modified work as a whole.  If
177 identifiable sections of that work are not derived from the Program,
178 and can be reasonably considered independent and separate works in
179 themselves, then this License, and its terms, do not apply to those
180 sections when you distribute them as separate works.  But when you
181 distribute the same sections as part of a whole which is a work based
182 on the Program, the distribution of the whole must be on the terms of
183 this License, whose permissions for other licensees extend to the
184 entire whole, and thus to each and every part regardless of who wrote it.
185
186 Thus, it is not the intent of this section to claim rights or contest
187 your rights to work written entirely by you; rather, the intent is to
188 exercise the right to control the distribution of derivative or
189 collective works based on the Program.
190
191 In addition, mere aggregation of another work not based on the Program
192 with the Program (or with a work based on the Program) on a volume of
193 a storage or distribution medium does not bring the other work under
194 the scope of this License.
195
196   3. You may copy and distribute the Program (or a work based on it,
197 under Section 2) in object code or executable form under the terms of
198 Sections 1 and 2 above provided that you also do one of the following:
199
200     a) Accompany it with the complete corresponding machine-readable
201     source code, which must be distributed under the terms of Sections
202     1 and 2 above on a medium customarily used for software interchange; or,
203
204     b) Accompany it with a written offer, valid for at least three
205     years, to give any third party, for a charge no more than your
206     cost of physically performing source distribution, a complete
207     machine-readable copy of the corresponding source code, to be
208     distributed under the terms of Sections 1 and 2 above on a medium
209     customarily used for software interchange; or,
210
211     c) Accompany it with the information you received as to the offer
212     to distribute corresponding source code.  (This alternative is
213     allowed only for noncommercial distribution and only if you
214     received the program in object code or executable form with such
215     an offer, in accord with Subsection b above.)
216
217 The source code for a work means the preferred form of the work for
218 making modifications to it.  For an executable work, complete source
219 code means all the source code for all modules it contains, plus any
220 associated interface definition files, plus the scripts used to
221 control compilation and installation of the executable.  However, as a
222 special exception, the source code distributed need not include
223 anything that is normally distributed (in either source or binary
224 form) with the major components (compiler, kernel, and so on) of the
225 operating system on which the executable runs, unless that component
226 itself accompanies the executable.
227
228 If distribution of executable or object code is made by offering
229 access to copy from a designated place, then offering equivalent
230 access to copy the source code from the same place counts as
231 distribution of the source code, even though third parties are not
232 compelled to copy the source along with the object code.
233
234   4. You may not copy, modify, sublicense, or distribute the Program
235 except as expressly provided under this License.  Any attempt
236 otherwise to copy, modify, sublicense or distribute the Program is
237 void, and will automatically terminate your rights under this License.
238 However, parties who have received copies, or rights, from you under
239 this License will not have their licenses terminated so long as such
240 parties remain in full compliance.
241
242   5. You are not required to accept this License, since you have not
243 signed it.  However, nothing else grants you permission to modify or
244 distribute the Program or its derivative works.  These actions are
245 prohibited by law if you do not accept this License.  Therefore, by
246 modifying or distributing the Program (or any work based on the
247 Program), you indicate your acceptance of this License to do so, and
248 all its terms and conditions for copying, distributing or modifying
249 the Program or works based on it.
250
251   6. Each time you redistribute the Program (or any work based on the
252 Program), the recipient automatically receives a license from the
253 original licensor to copy, distribute or modify the Program subject to
254 these terms and conditions.  You may not impose any further
255 restrictions on the recipients' exercise of the rights granted herein.
256 You are not responsible for enforcing compliance by third parties to
257 this License.
258
259   7. If, as a consequence of a court judgment or allegation of patent
260 infringement or for any other reason (not limited to patent issues),
261 conditions are imposed on you (whether by court order, agreement or
262 otherwise) that contradict the conditions of this License, they do not
263 excuse you from the conditions of this License.  If you cannot
264 distribute so as to satisfy simultaneously your obligations under this
265 License and any other pertinent obligations, then as a consequence you
266 may not distribute the Program at all.  For example, if a patent
267 license would not permit royalty-free redistribution of the Program by
268 all those who receive copies directly or indirectly through you, then
269 the only way you could satisfy both it and this License would be to
270 refrain entirely from distribution of the Program.
271
272 If any portion of this section is held invalid or unenforceable under
273 any particular circumstance, the balance of the section is intended to
274 apply and the section as a whole is intended to apply in other
275 circumstances.
276
277 It is not the purpose of this section to induce you to infringe any
278 patents or other property right claims or to contest validity of any
279 such claims; this section has the sole purpose of protecting the
280 integrity of the free software distribution system, which is
281 implemented by public license practices.  Many people have made
282 generous contributions to the wide range of software distributed
283 through that system in reliance on consistent application of that
284 system; it is up to the author/donor to decide if he or she is willing
285 to distribute software through any other system and a licensee cannot
286 impose that choice.
287
288 This section is intended to make thoroughly clear what is believed to
289 be a consequence of the rest of this License.
290
291   8. If the distribution and/or use of the Program is restricted in
292 certain countries either by patents or by copyrighted interfaces, the
293 original copyright holder who places the Program under this License
294 may add an explicit geographical distribution limitation excluding
295 those countries, so that distribution is permitted only in or among
296 countries not thus excluded.  In such case, this License incorporates
297 the limitation as if written in the body of this License.
298
299   9. The Free Software Foundation may publish revised and/or new versions
300 of the General Public License from time to time.  Such new versions will
301 be similar in spirit to the present version, but may differ in detail to
302 address new problems or concerns.
303
304 Each version is given a distinguishing version number.  If the Program
305 specifies a version number of this License which applies to it and "any
306 later version", you have the option of following the terms and conditions
307 either of that version or of any later version published by the Free
308 Software Foundation.  If the Program does not specify a version number of
309 this License, you may choose any version ever published by the Free Software
310 Foundation.
311
312   10. If you wish to incorporate parts of the Program into other free
313 programs whose distribution conditions are different, write to the author
314 to ask for permission.  For software which is copyrighted by the Free
315 Software Foundation, write to the Free Software Foundation; we sometimes
316 make exceptions for this.  Our decision will be guided by the two goals
317 of preserving the free status of all derivatives of our free software and
318 of promoting the sharing and reuse of software generally.
319
320                             NO WARRANTY
321
322   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
323 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
324 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
325 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
326 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
327 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
328 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
329 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
330 REPAIR OR CORRECTION.
331
332   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
333 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
334 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
335 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
336 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
337 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
338 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
339 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
340 POSSIBILITY OF SUCH DAMAGES.
341
342                      END OF TERMS AND CONDITIONS
343
344
345 -------------------------------------------------------------------------------
346
347 OpenSSL License
348 ---------------
349
350   LICENSE ISSUES
351   ==============
352
353   The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
354   the OpenSSL License and the original SSLeay license apply to the toolkit.
355   See below for the actual license texts. Actually both licenses are BSD-style
356   Open Source licenses. In case of any license issues related to OpenSSL
357   please contact openssl-core@openssl.org.
358
359   OpenSSL License
360   ---------------
361
362 /* ====================================================================
363  * Copyright (c) 1998-2001 The OpenSSL Project.  All rights reserved.
364  *
365  * Redistribution and use in source and binary forms, with or without
366  * modification, are permitted provided that the following conditions
367  * are met:
368  *
369  * 1. Redistributions of source code must retain the above copyright
370  *    notice, this list of conditions and the following disclaimer. 
371  *
372  * 2. Redistributions in binary form must reproduce the above copyright
373  *    notice, this list of conditions and the following disclaimer in
374  *    the documentation and/or other materials provided with the
375  *    distribution.
376  *
377  * 3. All advertising materials mentioning features or use of this
378  *    software must display the following acknowledgment:
379  *    "This product includes software developed by the OpenSSL Project
380  *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
381  *
382  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
383  *    endorse or promote products derived from this software without
384  *    prior written permission. For written permission, please contact
385  *    openssl-core@openssl.org.
386  *
387  * 5. Products derived from this software may not be called "OpenSSL"
388  *    nor may "OpenSSL" appear in their names without prior written
389  *    permission of the OpenSSL Project.
390  *
391  * 6. Redistributions of any form whatsoever must retain the following
392  *    acknowledgment:
393  *    "This product includes software developed by the OpenSSL Project
394  *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
395  *
396  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
397  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
398  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
399  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
400  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
401  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
402  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
403  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
404  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
405  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
406  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
407  * OF THE POSSIBILITY OF SUCH DAMAGE.
408  * ====================================================================
409  *
410  * This product includes cryptographic software written by Eric Young
411  * (eay@cryptsoft.com).  This product includes software written by Tim
412  * Hudson (tjh@cryptsoft.com).
413  *
414  */
415
416  Original SSLeay License
417  -----------------------
418
419 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
420  * All rights reserved.
421  *
422  * This package is an SSL implementation written
423  * by Eric Young (eay@cryptsoft.com).
424  * The implementation was written so as to conform with Netscapes SSL.
425  * 
426  * This library is free for commercial and non-commercial use as long as
427  * the following conditions are aheared to.  The following conditions
428  * apply to all code found in this distribution, be it the RC4, RSA,
429  * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
430  * included with this distribution is covered by the same copyright terms
431  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
432  * 
433  * Copyright remains Eric Young's, and as such any Copyright notices in
434  * the code are not to be removed.
435  * If this package is used in a product, Eric Young should be given attribution
436  * as the author of the parts of the library used.
437  * This can be in the form of a textual message at program startup or
438  * in documentation (online or textual) provided with the package.
439  * 
440  * Redistribution and use in source and binary forms, with or without
441  * modification, are permitted provided that the following conditions
442  * are met:
443  * 1. Redistributions of source code must retain the copyright
444  *    notice, this list of conditions and the following disclaimer.
445  * 2. Redistributions in binary form must reproduce the above copyright
446  *    notice, this list of conditions and the following disclaimer in the
447  *    documentation and/or other materials provided with the distribution.
448  * 3. All advertising materials mentioning features or use of this software
449  *    must display the following acknowledgement:
450  *    "This product includes cryptographic software written by
451  *     Eric Young (eay@cryptsoft.com)"
452  *    The word 'cryptographic' can be left out if the rouines from the library
453  *    being used are not cryptographic related :-).
454  * 4. If you include any Windows specific code (or a derivative thereof) from 
455  *    the apps directory (application code) you must include an acknowledgement:
456  *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
457  * 
458  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
459  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
460  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
461  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
462  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
463  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
464  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
465  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
466  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
467  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
468  * SUCH DAMAGE.
469  * 
470  * The licence and distribution terms for any publically available version or
471  * derivative of this code cannot be changed.  i.e. this code cannot simply be
472  * copied and put under another distribution licence
473  * [including the GNU Public Licence.]
474  */