From 00901acc7809ef170e0efe215048832a82068f4b Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Thu, 15 Mar 2018 22:31:07 -0700 Subject: [PATCH] Update license to Apache 2 --- LICENSE | 221 ++++++++++++++++-- README.md | 38 +-- conf/lex.go | 13 +- conf/parse.go | 13 +- conf/simple.conf | 2 - logger/log.go | 13 +- logger/log_test.go | 14 +- logger/syslog.go | 13 +- logger/syslog_test.go | 13 ++ logger/syslog_windows.go | 13 +- logger/syslog_windows_test.go | 14 +- main.go | 13 +- server/auth.go | 13 +- server/auth_test.go | 13 +- server/ciphersuites_1.5.go | 13 +- server/ciphersuites_1.8.go | 13 +- server/client.go | 13 +- server/client_test.go | 13 +- server/configs/authorization.conf | 2 - server/configs/cluster.conf | 1 - server/configs/listen.conf | 2 - server/configs/listen_port.conf | 2 - server/configs/listen_port_with_colon.conf | 2 - server/configs/malformed_cluster_address.conf | 2 - server/configs/malformed_listen_address.conf | 2 - server/configs/multiple_users.conf | 2 - server/configs/reload/authorization_1.conf | 2 - server/configs/reload/authorization_2.conf | 2 - server/configs/reload/basic.conf | 2 - server/configs/reload/file_rotate.conf | 1 - server/configs/reload/file_rotate1.conf | 1 - server/configs/reload/invalid.conf | 4 +- server/configs/reload/max_connections.conf | 2 - server/configs/reload/max_payload.conf | 2 - server/configs/reload/multiple_users_1.conf | 2 - server/configs/reload/multiple_users_2.conf | 2 - server/configs/reload/reload.conf | 2 - server/configs/reload/reload_unsupported.conf | 2 - .../reload/single_user_authentication_1.conf | 2 - .../reload/single_user_authentication_2.conf | 2 - server/configs/reload/srv_a_1.conf | 2 - server/configs/reload/srv_a_2.conf | 2 - server/configs/reload/srv_a_3.conf | 2 - server/configs/reload/srv_b_1.conf | 2 - server/configs/reload/srv_b_2.conf | 2 - server/configs/reload/srv_c_1.conf | 2 - server/configs/reload/test.conf | 2 - server/configs/reload/tls_test.conf | 2 - server/configs/reload/tls_verify_test.conf | 2 - .../reload/token_authentication_1.conf | 2 - .../reload/token_authentication_2.conf | 2 - server/configs/seed.conf | 2 - server/configs/seed_tls.conf | 2 - server/configs/srv_a.conf | 2 - server/configs/srv_a_bcrypt.conf | 2 - server/configs/srv_b.conf | 2 - server/configs/srv_b_bcrypt.conf | 2 - server/configs/test.conf | 2 - server/configs/tls.conf | 1 - server/configs/tls_bad_cipher.conf | 1 - server/configs/tls_bad_curve_prefs.conf | 1 - server/configs/tls_ciphers.conf | 1 - server/configs/tls_curve_prefs.conf | 1 - server/configs/tls_empty_cipher.conf | 1 - server/configs/tls_empty_curve_prefs.conf | 1 - server/const.go | 13 +- server/errors.go | 13 +- server/log.go | 13 +- server/log_test.go | 13 +- server/monitor.go | 13 +- server/monitor_sort_opts.go | 13 +- server/monitor_test.go | 13 +- server/opts.go | 13 +- server/opts_test.go | 13 +- server/parser.go | 13 +- server/parser_test.go | 13 +- server/ping_test.go | 13 +- server/pse/pse_darwin.go | 13 +- server/pse/pse_freebsd.go | 13 +- server/pse/pse_linux.go | 13 +- server/pse/pse_rumprun.go | 14 +- server/pse/pse_solaris.go | 13 +- server/pse/pse_test.go | 13 +- server/pse/pse_windows.go | 14 +- server/pse/pse_windows_test.go | 14 +- server/reload.go | 13 +- server/reload_test.go | 13 +- server/route.go | 13 +- server/routes_test.go | 13 +- server/server.go | 13 +- server/server_test.go | 13 +- server/service.go | 14 +- server/service_test.go | 14 +- server/service_windows.go | 13 +- server/signal.go | 14 +- server/signal_test.go | 14 +- server/signal_windows.go | 13 +- server/split_test.go | 13 +- server/sublist.go | 13 +- server/sublist_test.go | 14 +- server/util.go | 13 +- server/util_test.go | 13 +- test/auth_test.go | 13 +- test/bench_test.go | 13 +- test/client_auth_test.go | 13 +- test/client_cluster_test.go | 13 +- test/cluster_test.go | 13 +- test/cluster_tls_test.go | 13 +- test/configs/auth_seed.conf | 2 - test/configs/authorization.conf | 2 - test/configs/auths.conf | 2 - test/configs/cluster.conf | 2 - test/configs/multi_user.conf | 2 - test/configs/override.conf | 2 - test/configs/seed.conf | 2 - test/configs/srv_a.conf | 2 - test/configs/srv_a_tls.conf | 2 - test/configs/srv_b.conf | 2 - test/configs/srv_b_tls.conf | 2 - test/configs/tls.conf | 1 - test/configs/tls_curve_pref.conf | 1 - test/configs/tlsverify.conf | 1 - test/configs/tlsverify_noca.conf | 3 +- test/gosrv_test.go | 13 +- test/maxpayload_test.go | 13 +- test/monitor_test.go | 13 +- test/opts_test.go | 13 +- test/pedantic_test.go | 13 +- test/pid_test.go | 13 +- test/ping_test.go | 13 +- test/port_test.go | 13 +- test/proto_test.go | 13 +- test/route_discovery_test.go | 13 +- test/routes_test.go | 13 +- test/test.go | 13 +- test/test_test.go | 13 +- test/tls_test.go | 13 +- test/user_authorization_test.go | 13 +- test/verbose_test.go | 13 +- util/mkpasswd.go | 14 +- util/tls.go | 14 +- util/tls_pre17.go | 14 +- util/tls_pre18.go | 14 +- 143 files changed, 1162 insertions(+), 241 deletions(-) diff --git a/LICENSE b/LICENSE index 9798d4ef84..261eeb9e9f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,201 @@ -The MIT License (MIT) - -Copyright (c) 2012-2017 Apcera 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. + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index fa94a45610..03ebdbccfc 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ max_control_line: 512 # maximum payload max_payload: 65536 -# Duration the server can block on a socket write to a client. Exceeding the +# Duration the server can block on a socket write to a client. Exceeding the # deadline will designate a client as a slow consumer. write_deadline: "2s" ``` @@ -496,7 +496,7 @@ authorization { >If you chose to use a token for client's authentication and generate the token by `/util/mkpasswd.go` then you must use the generated bcrypt hash as the token in server config, as written above, and the generated pass as the token in client configurations. ``` -$ go run util/mkpasswd.go +$ go run util/mkpasswd.go pass: D#6)e0ht^@61kU5!^!owrX // NATS client token bcrypt hash: $2a$11$bXz1Mi5xM.rRUnYRT0Vb2el6sSzVrqA0DJKdt.5Itj1C1K4HT9FDG // server authorization token ``` @@ -784,33 +784,8 @@ The NATS maintainers hold online open office hours on the __2nd Monday of every The office hours agenda and how to join can be found [here](https://docs.google.com/a/synadia.com/document/d/1b_ffYvd7eZ4idtRCyQNwlpXV0slN2QGJxueEDbjX6QI/edit?usp=sharing), where we hope you'll comment about what you would like to discuss! - -## License - -(The MIT License) - -Copyright (c) 2012-2017 Apcera 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. - -[License-Url]: http://opensource.org/licenses/MIT -[License-Image]: https://img.shields.io/badge/License-MIT-blue.svg +[License-Url]: https://www.apache.org/licenses/LICENSE-2.0 +[License-Image]: https://img.shields.io/badge/License-Apache2-blue.svg [Build-Status-Url]: http://travis-ci.org/nats-io/gnatsd [Build-Status-Image]: https://travis-ci.org/nats-io/gnatsd.svg?branch=master [Release-Url]: https://github.com/nats-io/gnatsd/releases/tag/v1.0.6 @@ -820,3 +795,8 @@ IN THE SOFTWARE. [ReportCard-Url]: http://goreportcard.com/report/nats-io/gnatsd [ReportCard-Image]: http://goreportcard.com/badge/github.com/nats-io/gnatsd [github-release]: https://github.com/nats-io/gnatsd/releases/ + +## License + +Unless otherwise noted, the NATS source files are distributed +under the Apache Version 2.0 license found in the LICENSE file. \ No newline at end of file diff --git a/conf/lex.go b/conf/lex.go index f47fb38647..d09bf4457c 100644 --- a/conf/lex.go +++ b/conf/lex.go @@ -1,4 +1,15 @@ -// Copyright 2013-2016 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Customized heavily from // https://github.com/BurntSushi/toml/blob/master/lex.go, which is based on diff --git a/conf/parse.go b/conf/parse.go index 1552b9c436..09205ae0be 100644 --- a/conf/parse.go +++ b/conf/parse.go @@ -1,4 +1,15 @@ -// Copyright 2013-2016 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Package conf supports a configuration file format used by gnatsd. It is // a flexible format that combines the best of traditional diff --git a/conf/simple.conf b/conf/simple.conf index a306f79bea..8f75d73add 100644 --- a/conf/simple.conf +++ b/conf/simple.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: 127.0.0.1:4222 authorization { diff --git a/logger/log.go b/logger/log.go index 2a8b737fc0..132cb42a61 100644 --- a/logger/log.go +++ b/logger/log.go @@ -1,4 +1,15 @@ -// Copyright 2012-2015 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. //Package logger provides logging facilities for the NATS server package logger diff --git a/logger/log_test.go b/logger/log_test.go index 0bb9dfe4ad..d53728e7af 100644 --- a/logger/log_test.go +++ b/logger/log_test.go @@ -1,4 +1,16 @@ -// Copyright 2014-2015 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package logger import ( diff --git a/logger/syslog.go b/logger/syslog.go index 7d78b53b73..96d65ca676 100644 --- a/logger/syslog.go +++ b/logger/syslog.go @@ -1,4 +1,15 @@ -// Copyright 2012-2014 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // +build !windows diff --git a/logger/syslog_test.go b/logger/syslog_test.go index dfe22f1ce3..604ccd162e 100644 --- a/logger/syslog_test.go +++ b/logger/syslog_test.go @@ -1,3 +1,16 @@ +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build !windows package logger diff --git a/logger/syslog_windows.go b/logger/syslog_windows.go index f1d5644fea..7e780812e7 100644 --- a/logger/syslog_windows.go +++ b/logger/syslog_windows.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Package logger logs to the windows event log package logger diff --git a/logger/syslog_windows_test.go b/logger/syslog_windows_test.go index 3c6b2a76fa..8dc0646438 100755 --- a/logger/syslog_windows_test.go +++ b/logger/syslog_windows_test.go @@ -1,4 +1,16 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build windows package logger diff --git a/main.go b/main.go index c33a0bed21..1feb09306c 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package main diff --git a/server/auth.go b/server/auth.go index 3871af7e25..d7c5ded077 100644 --- a/server/auth.go +++ b/server/auth.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/auth_test.go b/server/auth_test.go index fc0cc1bd4f..787f59935c 100644 --- a/server/auth_test.go +++ b/server/auth_test.go @@ -1,4 +1,15 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/ciphersuites_1.5.go b/server/ciphersuites_1.5.go index e1a4b9ef80..7eca01c689 100644 --- a/server/ciphersuites_1.5.go +++ b/server/ciphersuites_1.5.go @@ -1,4 +1,15 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // +build go1.5,!go1.8 diff --git a/server/ciphersuites_1.8.go b/server/ciphersuites_1.8.go index 117a964efe..ae84058cfe 100644 --- a/server/ciphersuites_1.8.go +++ b/server/ciphersuites_1.8.go @@ -1,4 +1,15 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // +build go1.8 diff --git a/server/client.go b/server/client.go index 8d2fbd8db4..4013ac184a 100644 --- a/server/client.go +++ b/server/client.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/client_test.go b/server/client_test.go index c28c18dc1e..01fbda252a 100644 --- a/server/client_test.go +++ b/server/client_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/configs/authorization.conf b/server/configs/authorization.conf index 2cf47a030b..3a0f43c4cf 100644 --- a/server/configs/authorization.conf +++ b/server/configs/authorization.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: 127.0.0.1:4222 authorization { diff --git a/server/configs/cluster.conf b/server/configs/cluster.conf index 4462f07dbd..578e85d3ac 100644 --- a/server/configs/cluster.conf +++ b/server/configs/cluster.conf @@ -1,4 +1,3 @@ - # Cluster config file port: 4242 diff --git a/server/configs/listen.conf b/server/configs/listen.conf index 9b1e76eaeb..3e0de5623f 100644 --- a/server/configs/listen.conf +++ b/server/configs/listen.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - # Test all permutations of listen address parsing, client, cluster and http. listen: 10.0.1.22:4422 diff --git a/server/configs/listen_port.conf b/server/configs/listen_port.conf index 246f2eb9c9..9bd34eddb8 100644 --- a/server/configs/listen_port.conf +++ b/server/configs/listen_port.conf @@ -1,3 +1 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: 8922 diff --git a/server/configs/listen_port_with_colon.conf b/server/configs/listen_port_with_colon.conf index 3f929f6de6..0756f999ef 100644 --- a/server/configs/listen_port_with_colon.conf +++ b/server/configs/listen_port_with_colon.conf @@ -1,3 +1 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: :8922 diff --git a/server/configs/malformed_cluster_address.conf b/server/configs/malformed_cluster_address.conf index dcb388386b..bb553dc896 100644 --- a/server/configs/malformed_cluster_address.conf +++ b/server/configs/malformed_cluster_address.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - # Test malformed cluster listen address cluster { listen: 266.0.0.1:foo diff --git a/server/configs/malformed_listen_address.conf b/server/configs/malformed_listen_address.conf index e05954ad11..483c293aa2 100644 --- a/server/configs/malformed_listen_address.conf +++ b/server/configs/malformed_listen_address.conf @@ -1,4 +1,2 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - # test garbage listen address for failure listen: 10.0.1.22:foo \ No newline at end of file diff --git a/server/configs/multiple_users.conf b/server/configs/multiple_users.conf index c7ccdb003b..42dc107e22 100644 --- a/server/configs/multiple_users.conf +++ b/server/configs/multiple_users.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: localhost:4443 authorization { diff --git a/server/configs/reload/authorization_1.conf b/server/configs/reload/authorization_1.conf index 35635a5b47..753b3b7744 100644 --- a/server/configs/reload/authorization_1.conf +++ b/server/configs/reload/authorization_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/authorization_2.conf b/server/configs/reload/authorization_2.conf index a3d869a959..92b611256b 100644 --- a/server/configs/reload/authorization_2.conf +++ b/server/configs/reload/authorization_2.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/basic.conf b/server/configs/reload/basic.conf index 6334f5ded1..6f506dffef 100644 --- a/server/configs/reload/basic.conf +++ b/server/configs/reload/basic.conf @@ -1,3 +1 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 diff --git a/server/configs/reload/file_rotate.conf b/server/configs/reload/file_rotate.conf index 15b88da99b..4fb632c66d 100644 --- a/server/configs/reload/file_rotate.conf +++ b/server/configs/reload/file_rotate.conf @@ -1,4 +1,3 @@ -# Copyright 2018 Authors listen: localhost:-1 logfile: "log.txt" pid_file: "gnatsd.pid" diff --git a/server/configs/reload/file_rotate1.conf b/server/configs/reload/file_rotate1.conf index 9dee043767..4504ba546d 100644 --- a/server/configs/reload/file_rotate1.conf +++ b/server/configs/reload/file_rotate1.conf @@ -1,4 +1,3 @@ -# Copyright 2018 Authors listen: localhost:-1 logfile: "log1.txt" pid_file: "gnatsd1.pid" diff --git a/server/configs/reload/invalid.conf b/server/configs/reload/invalid.conf index f769d1e3d4..b288711d9d 100644 --- a/server/configs/reload/invalid.conf +++ b/server/configs/reload/invalid.conf @@ -1,4 +1,2 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Invalid config file -trace: +trace: diff --git a/server/configs/reload/max_connections.conf b/server/configs/reload/max_connections.conf index d0ef2ee18b..b839ae9bdd 100644 --- a/server/configs/reload/max_connections.conf +++ b/server/configs/reload/max_connections.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 max_connections: 1 diff --git a/server/configs/reload/max_payload.conf b/server/configs/reload/max_payload.conf index 4cc2175791..df9c26cd31 100644 --- a/server/configs/reload/max_payload.conf +++ b/server/configs/reload/max_payload.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 max_payload: 1 diff --git a/server/configs/reload/multiple_users_1.conf b/server/configs/reload/multiple_users_1.conf index ee0ff4bf39..e002533905 100644 --- a/server/configs/reload/multiple_users_1.conf +++ b/server/configs/reload/multiple_users_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/multiple_users_2.conf b/server/configs/reload/multiple_users_2.conf index 701c2ee707..44663cc776 100644 --- a/server/configs/reload/multiple_users_2.conf +++ b/server/configs/reload/multiple_users_2.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/reload.conf b/server/configs/reload/reload.conf index d5dcef8501..4d28073ec8 100644 --- a/server/configs/reload/reload.conf +++ b/server/configs/reload/reload.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - include 'platform.conf' # logging options diff --git a/server/configs/reload/reload_unsupported.conf b/server/configs/reload/reload_unsupported.conf index 6b68890dd5..6f66a8df7f 100644 --- a/server/configs/reload/reload_unsupported.conf +++ b/server/configs/reload/reload_unsupported.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # logging options debug: false trace: true diff --git a/server/configs/reload/single_user_authentication_1.conf b/server/configs/reload/single_user_authentication_1.conf index 70eb602026..8d576d8e01 100644 --- a/server/configs/reload/single_user_authentication_1.conf +++ b/server/configs/reload/single_user_authentication_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/single_user_authentication_2.conf b/server/configs/reload/single_user_authentication_2.conf index 8f5ff78db8..7b6940cd80 100644 --- a/server/configs/reload/single_user_authentication_2.conf +++ b/server/configs/reload/single_user_authentication_2.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/srv_a_1.conf b/server/configs/reload/srv_a_1.conf index 6b62636adf..4bcdf04e30 100644 --- a/server/configs/reload/srv_a_1.conf +++ b/server/configs/reload/srv_a_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Cluster Server A listen: localhost:-1 diff --git a/server/configs/reload/srv_a_2.conf b/server/configs/reload/srv_a_2.conf index f572f0e464..a8d19e929f 100644 --- a/server/configs/reload/srv_a_2.conf +++ b/server/configs/reload/srv_a_2.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Cluster Server A listen: localhost:-1 diff --git a/server/configs/reload/srv_a_3.conf b/server/configs/reload/srv_a_3.conf index 232aa207ca..5d51aab39a 100644 --- a/server/configs/reload/srv_a_3.conf +++ b/server/configs/reload/srv_a_3.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Cluster Server A listen: localhost:-1 diff --git a/server/configs/reload/srv_b_1.conf b/server/configs/reload/srv_b_1.conf index f677fea963..3c104a28a4 100644 --- a/server/configs/reload/srv_b_1.conf +++ b/server/configs/reload/srv_b_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Cluster Server B listen: localhost:-1 diff --git a/server/configs/reload/srv_b_2.conf b/server/configs/reload/srv_b_2.conf index 46dc3f3203..b99f7314b7 100644 --- a/server/configs/reload/srv_b_2.conf +++ b/server/configs/reload/srv_b_2.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Cluster Server B listen: localhost:-1 diff --git a/server/configs/reload/srv_c_1.conf b/server/configs/reload/srv_c_1.conf index d2c85957de..61ab4d07a2 100644 --- a/server/configs/reload/srv_c_1.conf +++ b/server/configs/reload/srv_c_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Cluster Server C listen: localhost:-1 diff --git a/server/configs/reload/test.conf b/server/configs/reload/test.conf index dda9574538..fb0370461d 100644 --- a/server/configs/reload/test.conf +++ b/server/configs/reload/test.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # logging options debug: false trace: false diff --git a/server/configs/reload/tls_test.conf b/server/configs/reload/tls_test.conf index b741470a08..3adc125c85 100644 --- a/server/configs/reload/tls_test.conf +++ b/server/configs/reload/tls_test.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Simple TLS config file listen: localhost:-1 diff --git a/server/configs/reload/tls_verify_test.conf b/server/configs/reload/tls_verify_test.conf index 7b7d340f81..167c6d26d9 100644 --- a/server/configs/reload/tls_verify_test.conf +++ b/server/configs/reload/tls_verify_test.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Simple TLS config file listen: localhost:-1 diff --git a/server/configs/reload/token_authentication_1.conf b/server/configs/reload/token_authentication_1.conf index cde4e122a4..a3a46792e1 100644 --- a/server/configs/reload/token_authentication_1.conf +++ b/server/configs/reload/token_authentication_1.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/reload/token_authentication_2.conf b/server/configs/reload/token_authentication_2.conf index 564add055e..7190869b44 100644 --- a/server/configs/reload/token_authentication_2.conf +++ b/server/configs/reload/token_authentication_2.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - listen: localhost:-1 authorization { diff --git a/server/configs/seed.conf b/server/configs/seed.conf index cb43d2d8be..54b781b148 100644 --- a/server/configs/seed.conf +++ b/server/configs/seed.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - # Cluster Seed Node listen: 127.0.0.1:7222 diff --git a/server/configs/seed_tls.conf b/server/configs/seed_tls.conf index 893f9ecba8..206bb70302 100644 --- a/server/configs/seed_tls.conf +++ b/server/configs/seed_tls.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - # Cluster Seed Node listen: 127.0.0.1:7222 diff --git a/server/configs/srv_a.conf b/server/configs/srv_a.conf index 30cad460a2..a19e6e5182 100644 --- a/server/configs/srv_a.conf +++ b/server/configs/srv_a.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server A listen: 127.0.0.1:7222 diff --git a/server/configs/srv_a_bcrypt.conf b/server/configs/srv_a_bcrypt.conf index 7efb0866b0..2343441a62 100644 --- a/server/configs/srv_a_bcrypt.conf +++ b/server/configs/srv_a_bcrypt.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server A listen: 127.0.0.1:7222 diff --git a/server/configs/srv_b.conf b/server/configs/srv_b.conf index 17aefb9c7f..d6eddb6561 100644 --- a/server/configs/srv_b.conf +++ b/server/configs/srv_b.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server B listen: 127.0.0.1:7224 diff --git a/server/configs/srv_b_bcrypt.conf b/server/configs/srv_b_bcrypt.conf index b698a13f22..62a9e78de0 100644 --- a/server/configs/srv_b_bcrypt.conf +++ b/server/configs/srv_b_bcrypt.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server B listen: 127.0.0.1:7224 diff --git a/server/configs/test.conf b/server/configs/test.conf index 13c4865c3e..fd024295eb 100644 --- a/server/configs/test.conf +++ b/server/configs/test.conf @@ -1,5 +1,3 @@ -# Copyright 2017 Apcera Inc. All rights reserved. - # Simple config file listen: localhost:4242 diff --git a/server/configs/tls.conf b/server/configs/tls.conf index cc3a8f683c..3540803c3b 100644 --- a/server/configs/tls.conf +++ b/server/configs/tls.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/configs/tls_bad_cipher.conf b/server/configs/tls_bad_cipher.conf index 667d286f34..f1e224b354 100644 --- a/server/configs/tls_bad_cipher.conf +++ b/server/configs/tls_bad_cipher.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/configs/tls_bad_curve_prefs.conf b/server/configs/tls_bad_curve_prefs.conf index fbc0caf298..89b77e3487 100644 --- a/server/configs/tls_bad_curve_prefs.conf +++ b/server/configs/tls_bad_curve_prefs.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/configs/tls_ciphers.conf b/server/configs/tls_ciphers.conf index 32e6b1fdc1..83a61f5fe8 100644 --- a/server/configs/tls_ciphers.conf +++ b/server/configs/tls_ciphers.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/configs/tls_curve_prefs.conf b/server/configs/tls_curve_prefs.conf index 2797723675..481f1800ac 100644 --- a/server/configs/tls_curve_prefs.conf +++ b/server/configs/tls_curve_prefs.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/configs/tls_empty_cipher.conf b/server/configs/tls_empty_cipher.conf index 094dfd19db..b58f6ba15d 100644 --- a/server/configs/tls_empty_cipher.conf +++ b/server/configs/tls_empty_cipher.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/configs/tls_empty_curve_prefs.conf b/server/configs/tls_empty_curve_prefs.conf index b655c77b9c..e790a805e2 100644 --- a/server/configs/tls_empty_curve_prefs.conf +++ b/server/configs/tls_empty_curve_prefs.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:4443 diff --git a/server/const.go b/server/const.go index dc5417e72a..45354e49b2 100644 --- a/server/const.go +++ b/server/const.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/errors.go b/server/errors.go index cc22bd1e2d..b93a9e5c7d 100644 --- a/server/errors.go +++ b/server/errors.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/log.go b/server/log.go index 6e8ed8ef82..8c2be370f2 100644 --- a/server/log.go +++ b/server/log.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/log_test.go b/server/log_test.go index 113495efb1..78aea10fe2 100644 --- a/server/log_test.go +++ b/server/log_test.go @@ -1,4 +1,15 @@ -// Copyright 2014 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/monitor.go b/server/monitor.go index 809dc5cea8..9e80400cf7 100644 --- a/server/monitor.go +++ b/server/monitor.go @@ -1,4 +1,15 @@ -// Copyright 2013-2017 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/monitor_sort_opts.go b/server/monitor_sort_opts.go index 9dadef70e5..a43a46ee69 100644 --- a/server/monitor_sort_opts.go +++ b/server/monitor_sort_opts.go @@ -1,4 +1,15 @@ -// Copyright 2013-2016 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/monitor_test.go b/server/monitor_test.go index 662726c639..50d91c50f7 100644 --- a/server/monitor_test.go +++ b/server/monitor_test.go @@ -1,4 +1,15 @@ -// Copyright 2015-2017 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/opts.go b/server/opts.go index 75484857a5..3ba5683d43 100644 --- a/server/opts.go +++ b/server/opts.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/opts_test.go b/server/opts_test.go index b66ec72583..e1cae5f0ef 100644 --- a/server/opts_test.go +++ b/server/opts_test.go @@ -1,4 +1,15 @@ -// Copyright 2013-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/parser.go b/server/parser.go index b624e84cca..5685c94a2a 100644 --- a/server/parser.go +++ b/server/parser.go @@ -1,4 +1,15 @@ -// Copyright 2012-2014 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/parser_test.go b/server/parser_test.go index 061f12927b..16e49e39f2 100644 --- a/server/parser_test.go +++ b/server/parser_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2015 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/ping_test.go b/server/ping_test.go index 754ad4cd78..f8abf5efa9 100644 --- a/server/ping_test.go +++ b/server/ping_test.go @@ -1,4 +1,15 @@ -// Copyright 2015 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/pse/pse_darwin.go b/server/pse/pse_darwin.go index e1c2ae5058..b00f1e00f6 100644 --- a/server/pse/pse_darwin.go +++ b/server/pse/pse_darwin.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pse diff --git a/server/pse/pse_freebsd.go b/server/pse/pse_freebsd.go index a5266f679b..40c5284711 100644 --- a/server/pse/pse_freebsd.go +++ b/server/pse/pse_freebsd.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pse diff --git a/server/pse/pse_linux.go b/server/pse/pse_linux.go index b09471e860..9fea3e07dc 100644 --- a/server/pse/pse_linux.go +++ b/server/pse/pse_linux.go @@ -1,4 +1,15 @@ -// Copyright 2015 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pse diff --git a/server/pse/pse_rumprun.go b/server/pse/pse_rumprun.go index b4eb7c3aba..48e80fca2c 100644 --- a/server/pse/pse_rumprun.go +++ b/server/pse/pse_rumprun.go @@ -1,4 +1,16 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build rumprun package pse diff --git a/server/pse/pse_solaris.go b/server/pse/pse_solaris.go index 596643c9e6..8e40d2ed30 100644 --- a/server/pse/pse_solaris.go +++ b/server/pse/pse_solaris.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pse diff --git a/server/pse/pse_test.go b/server/pse/pse_test.go index 0685735d37..890f9645bc 100644 --- a/server/pse/pse_test.go +++ b/server/pse/pse_test.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pse diff --git a/server/pse/pse_windows.go b/server/pse/pse_windows.go index 0f72742625..a8b110704f 100644 --- a/server/pse/pse_windows.go +++ b/server/pse/pse_windows.go @@ -1,4 +1,16 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build windows package pse diff --git a/server/pse/pse_windows_test.go b/server/pse/pse_windows_test.go index 3598e7ba6c..bae1dd58a3 100644 --- a/server/pse/pse_windows_test.go +++ b/server/pse/pse_windows_test.go @@ -1,4 +1,16 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build windows package pse diff --git a/server/reload.go b/server/reload.go index 4750539052..f19e931242 100644 --- a/server/reload.go +++ b/server/reload.go @@ -1,4 +1,15 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2017-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/reload_test.go b/server/reload_test.go index 09faa0dddb..51fe711107 100644 --- a/server/reload_test.go +++ b/server/reload_test.go @@ -1,4 +1,15 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2017-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/route.go b/server/route.go index 8daa25ef15..1ee92ba66b 100644 --- a/server/route.go +++ b/server/route.go @@ -1,4 +1,15 @@ -// Copyright 2013-2017 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/routes_test.go b/server/routes_test.go index 6d2ae554f2..dc50eeaa62 100644 --- a/server/routes_test.go +++ b/server/routes_test.go @@ -1,4 +1,15 @@ -// Copyright 2013-2016 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/server.go b/server/server.go index 4c14ad5b44..4b35cff496 100644 --- a/server/server.go +++ b/server/server.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/server_test.go b/server/server_test.go index fd30cc029b..d74ad06865 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/service.go b/server/service.go index fbede40ae6..a44cbac334 100644 --- a/server/service.go +++ b/server/service.go @@ -1,5 +1,17 @@ +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build !windows -// Copyright 2012-2017 Apcera Inc. All rights reserved. package server diff --git a/server/service_test.go b/server/service_test.go index e8e6f805b9..8811c1850a 100644 --- a/server/service_test.go +++ b/server/service_test.go @@ -1,5 +1,17 @@ +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build !windows -// Copyright 2012-2017 Apcera Inc. All rights reserved. package server diff --git a/server/service_windows.go b/server/service_windows.go index d9b3ea70ae..43cc2b5cee 100644 --- a/server/service_windows.go +++ b/server/service_windows.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/signal.go b/server/signal.go index 0c072722d6..d88bd81fe7 100644 --- a/server/signal.go +++ b/server/signal.go @@ -1,5 +1,17 @@ +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build !windows -// Copyright 2012-2017 Apcera Inc. All rights reserved. package server diff --git a/server/signal_test.go b/server/signal_test.go index 4757fa062f..08d06f69e0 100644 --- a/server/signal_test.go +++ b/server/signal_test.go @@ -1,4 +1,16 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build !windows package server diff --git a/server/signal_windows.go b/server/signal_windows.go index fa0703c56e..368077dd59 100644 --- a/server/signal_windows.go +++ b/server/signal_windows.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/split_test.go b/server/split_test.go index ff826c3234..f8beca806e 100644 --- a/server/split_test.go +++ b/server/split_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/sublist.go b/server/sublist.go index 3af9fb39ab..93f6f017f4 100644 --- a/server/sublist.go +++ b/server/sublist.go @@ -1,4 +1,15 @@ -// Copyright 2016-2017 Apcera Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. // Package sublist is a routing mechanism to handle subject distribution // and provides a facility to match subjects from published messages to diff --git a/server/sublist_test.go b/server/sublist_test.go index dbea2e132e..3625a5b3aa 100644 --- a/server/sublist_test.go +++ b/server/sublist_test.go @@ -1,5 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. -// Copyright 2018 Synadia Communications Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/util.go b/server/util.go index 05208c732a..3a2ffe6605 100644 --- a/server/util.go +++ b/server/util.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/util_test.go b/server/util_test.go index 393819c89a..29748a4276 100644 --- a/server/util_test.go +++ b/server/util_test.go @@ -1,4 +1,15 @@ -// Copyright 2014-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/test/auth_test.go b/test/auth_test.go index 87cb5f1b43..7521620213 100644 --- a/test/auth_test.go +++ b/test/auth_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/bench_test.go b/test/bench_test.go index 9747c904f0..ba8e72bf50 100644 --- a/test/bench_test.go +++ b/test/bench_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2015 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/client_auth_test.go b/test/client_auth_test.go index f8dac7c004..9255c4bdc5 100644 --- a/test/client_auth_test.go +++ b/test/client_auth_test.go @@ -1,4 +1,15 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/client_cluster_test.go b/test/client_cluster_test.go index 5f6c31e3bb..645a31b69c 100644 --- a/test/client_cluster_test.go +++ b/test/client_cluster_test.go @@ -1,4 +1,15 @@ -// Copyright 2013-2014 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/cluster_test.go b/test/cluster_test.go index 0816efc5be..f8b6e06417 100644 --- a/test/cluster_test.go +++ b/test/cluster_test.go @@ -1,4 +1,15 @@ -// Copyright 2013-2016 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/cluster_tls_test.go b/test/cluster_tls_test.go index ee9c946451..e215667fcb 100644 --- a/test/cluster_tls_test.go +++ b/test/cluster_tls_test.go @@ -1,4 +1,15 @@ -// Copyright 2013-2015 Apcera Inc. All rights reserved. +// Copyright 2013-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/configs/auth_seed.conf b/test/configs/auth_seed.conf index 6640d74b81..56228f6ce1 100644 --- a/test/configs/auth_seed.conf +++ b/test/configs/auth_seed.conf @@ -1,5 +1,3 @@ -# Copyright 2015-2016 Apcera Inc. All rights reserved. - # Cluster Seed Node listen: 127.0.0.1:5222 diff --git a/test/configs/authorization.conf b/test/configs/authorization.conf index ea9c19e6d8..383403f122 100644 --- a/test/configs/authorization.conf +++ b/test/configs/authorization.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: 127.0.0.1:2442 authorization { diff --git a/test/configs/auths.conf b/test/configs/auths.conf index e3f37d20c5..3d9860b5ea 100644 --- a/test/configs/auths.conf +++ b/test/configs/auths.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - # Our role based permissions. # Admin can do anything. diff --git a/test/configs/cluster.conf b/test/configs/cluster.conf index 1c1eb7957f..d429d616ac 100644 --- a/test/configs/cluster.conf +++ b/test/configs/cluster.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster config file listen: 127.0.0.1:5242 diff --git a/test/configs/multi_user.conf b/test/configs/multi_user.conf index 0bf832989e..ccfd702326 100644 --- a/test/configs/multi_user.conf +++ b/test/configs/multi_user.conf @@ -1,5 +1,3 @@ -# Copyright 2016 Apcera Inc. All rights reserved. - listen: 127.0.0.1:4233 http: 127.0.0.1:8233 diff --git a/test/configs/override.conf b/test/configs/override.conf index 311f163bf0..5e8992c59c 100644 --- a/test/configs/override.conf +++ b/test/configs/override.conf @@ -1,5 +1,3 @@ -# Copyright 2015-2016 Apcera Inc. All rights reserved. - # Config file to test overrides to client listen: 127.0.0.1:5224 diff --git a/test/configs/seed.conf b/test/configs/seed.conf index 245c9e537e..64c824b7a4 100644 --- a/test/configs/seed.conf +++ b/test/configs/seed.conf @@ -1,5 +1,3 @@ -# Copyright 2015-2016 Apcera Inc. All rights reserved. - # Cluster Seed Node listen: 127.0.0.1:5222 diff --git a/test/configs/srv_a.conf b/test/configs/srv_a.conf index 421d3599e5..8dfc4fa4d8 100644 --- a/test/configs/srv_a.conf +++ b/test/configs/srv_a.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server A listen: 127.0.0.1:5222 diff --git a/test/configs/srv_a_tls.conf b/test/configs/srv_a_tls.conf index cdf7beb535..bdc98968c4 100644 --- a/test/configs/srv_a_tls.conf +++ b/test/configs/srv_a_tls.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server A listen: 127.0.0.1:5222 diff --git a/test/configs/srv_b.conf b/test/configs/srv_b.conf index 05369ca440..54bdb26662 100644 --- a/test/configs/srv_b.conf +++ b/test/configs/srv_b.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server B listen: 127.0.0.1:5224 diff --git a/test/configs/srv_b_tls.conf b/test/configs/srv_b_tls.conf index 20ca2c82c2..9f2dfb19cc 100644 --- a/test/configs/srv_b_tls.conf +++ b/test/configs/srv_b_tls.conf @@ -1,5 +1,3 @@ -# Copyright 2012-2016 Apcera Inc. All rights reserved. - # Cluster Server B listen: 127.0.0.1:5224 diff --git a/test/configs/tls.conf b/test/configs/tls.conf index 2a80aa735a..6dab942907 100644 --- a/test/configs/tls.conf +++ b/test/configs/tls.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:5443 diff --git a/test/configs/tls_curve_pref.conf b/test/configs/tls_curve_pref.conf index 45edafbfba..c144b6e1dc 100644 --- a/test/configs/tls_curve_pref.conf +++ b/test/configs/tls_curve_pref.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:5443 diff --git a/test/configs/tlsverify.conf b/test/configs/tlsverify.conf index a04e9edf30..d92119e033 100644 --- a/test/configs/tlsverify.conf +++ b/test/configs/tlsverify.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:5443 diff --git a/test/configs/tlsverify_noca.conf b/test/configs/tlsverify_noca.conf index 1947d6f078..364210310b 100644 --- a/test/configs/tlsverify_noca.conf +++ b/test/configs/tlsverify_noca.conf @@ -1,4 +1,3 @@ - # Simple TLS config file listen: localhost:5443 @@ -13,6 +12,6 @@ tls { # Require a client certificate verify: true # Omit the client CA, this is to verify that - # the server is really trying to verify the + # the server is really trying to verify the # client certificate. } diff --git a/test/gosrv_test.go b/test/gosrv_test.go index 7593ec4759..fc43208952 100644 --- a/test/gosrv_test.go +++ b/test/gosrv_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2013 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/maxpayload_test.go b/test/maxpayload_test.go index 8e0b943487..9fe6878241 100644 --- a/test/maxpayload_test.go +++ b/test/maxpayload_test.go @@ -1,4 +1,15 @@ -// Copyright 2015 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/monitor_test.go b/test/monitor_test.go index e0813b448f..67cf6b189b 100644 --- a/test/monitor_test.go +++ b/test/monitor_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2015 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/opts_test.go b/test/opts_test.go index c42c79869c..0275989ea4 100644 --- a/test/opts_test.go +++ b/test/opts_test.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/pedantic_test.go b/test/pedantic_test.go index 5bc5593bbf..a3d9456bc0 100644 --- a/test/pedantic_test.go +++ b/test/pedantic_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2014 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/pid_test.go b/test/pid_test.go index a3b40a501c..a4bd9f3133 100644 --- a/test/pid_test.go +++ b/test/pid_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2013 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/ping_test.go b/test/ping_test.go index 641d1969dc..f29dc0615d 100644 --- a/test/ping_test.go +++ b/test/ping_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2017 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/port_test.go b/test/port_test.go index 7ae65359df..07e9d6bb10 100644 --- a/test/port_test.go +++ b/test/port_test.go @@ -1,4 +1,15 @@ -// Copyright 2014 Apcera Inc. All rights reserved. +// Copyright 2014-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/proto_test.go b/test/proto_test.go index aa5f42fadb..c3d5f0c17c 100644 --- a/test/proto_test.go +++ b/test/proto_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2014 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/route_discovery_test.go b/test/route_discovery_test.go index 7b6e5deb68..1a49323a7d 100644 --- a/test/route_discovery_test.go +++ b/test/route_discovery_test.go @@ -1,4 +1,15 @@ -// Copyright 2015-2016 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/routes_test.go b/test/routes_test.go index 8c3cd19d78..acc7a7886f 100644 --- a/test/routes_test.go +++ b/test/routes_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/test.go b/test/test.go index 5268ac7d06..5b3fe830bc 100644 --- a/test/test.go +++ b/test/test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2016 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/test_test.go b/test/test_test.go index 017df31a67..48af00b3a7 100644 --- a/test/test_test.go +++ b/test/test_test.go @@ -1,4 +1,15 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/tls_test.go b/test/tls_test.go index eb02f79a12..38a90f817e 100644 --- a/test/tls_test.go +++ b/test/tls_test.go @@ -1,4 +1,15 @@ -// Copyright 2015 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/user_authorization_test.go b/test/user_authorization_test.go index f709c17570..851c917d11 100644 --- a/test/user_authorization_test.go +++ b/test/user_authorization_test.go @@ -1,4 +1,15 @@ -// Copyright 2016 Apcera Inc. All rights reserved. +// Copyright 2016-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/test/verbose_test.go b/test/verbose_test.go index f776bf0301..9e5e25a186 100644 --- a/test/verbose_test.go +++ b/test/verbose_test.go @@ -1,4 +1,15 @@ -// Copyright 2012-2014 Apcera Inc. All rights reserved. +// Copyright 2012-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package test diff --git a/util/mkpasswd.go b/util/mkpasswd.go index df22795a4c..02cdcb5187 100644 --- a/util/mkpasswd.go +++ b/util/mkpasswd.go @@ -1,4 +1,16 @@ -// Copyright 2015 Apcera Inc. All rights reserved. +// Copyright 2015-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build ignore package main diff --git a/util/tls.go b/util/tls.go index 2ec860064c..87907eeb60 100644 --- a/util/tls.go +++ b/util/tls.go @@ -1,4 +1,16 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2017-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build go1.8 package util diff --git a/util/tls_pre17.go b/util/tls_pre17.go index 86feee8a2a..99ea32b410 100644 --- a/util/tls_pre17.go +++ b/util/tls_pre17.go @@ -1,4 +1,16 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2017-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build go1.5,!go1.7 package util diff --git a/util/tls_pre18.go b/util/tls_pre18.go index 50dc45febe..7df472617c 100644 --- a/util/tls_pre18.go +++ b/util/tls_pre18.go @@ -1,4 +1,16 @@ -// Copyright 2017 Apcera Inc. All rights reserved. +// Copyright 2017-2018 The NATS Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // +build go1.7,!go1.8 package util