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 | 213 ++++++++++++++++-- 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, 1158 insertions(+), 237 deletions(-) diff --git a/LICENSE b/LICENSE index 9798d4ef..261eeb9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,201 @@ -The MIT License (MIT) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright (c) 2012-2017 Apcera Inc. + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -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: + 1. Definitions. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. -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. + "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 fa94a456..03ebdbcc 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 f47fb386..d09bf445 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 1552b9c4..09205ae0 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 a306f79b..8f75d73a 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 2a8b737f..132cb42a 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 0bb9dfe4..d53728e7 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 7d78b53b..96d65ca6 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 dfe22f1c..604ccd16 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 f1d5644f..7e780812 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 3c6b2a76..8dc06464 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 c33a0bed..1feb0930 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 3871af7e..d7c5ded0 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 fc0cc1bd..787f5993 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 e1a4b9ef..7eca01c6 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 117a964e..ae84058c 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 8d2fbd8d..4013ac18 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 c28c18dc..01fbda25 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 2cf47a03..3a0f43c4 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 4462f07d..578e85d3 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 9b1e76ea..3e0de562 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 246f2eb9..9bd34edd 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 3f929f6d..0756f999 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 dcb38838..bb553dc8 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 e05954ad..483c293a 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 c7ccdb00..42dc107e 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 35635a5b..753b3b77 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 a3d869a9..92b61125 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 6334f5de..6f506dff 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 15b88da9..4fb632c6 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 9dee0437..4504ba54 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 f769d1e3..b288711d 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 d0ef2ee1..b839ae9b 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 4cc21757..df9c26cd 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 ee0ff4bf..e0025339 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 701c2ee7..44663cc7 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 d5dcef85..4d28073e 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 6b68890d..6f66a8df 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 70eb6020..8d576d8e 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 8f5ff78d..7b6940cd 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 6b62636a..4bcdf04e 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 f572f0e4..a8d19e92 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 232aa207..5d51aab3 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 f677fea9..3c104a28 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 46dc3f32..b99f7314 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 d2c85957..61ab4d07 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 dda95745..fb037046 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 b741470a..3adc125c 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 7b7d340f..167c6d26 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 cde4e122..a3a46792 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 564add05..7190869b 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 cb43d2d8..54b781b1 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 893f9ecb..206bb703 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 30cad460..a19e6e51 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 7efb0866..2343441a 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 17aefb9c..d6eddb65 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 b698a13f..62a9e78d 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 13c4865c..fd024295 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 cc3a8f68..3540803c 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 667d286f..f1e224b3 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 fbc0caf2..89b77e34 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 32e6b1fd..83a61f5f 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 27977236..481f1800 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 094dfd19..b58f6ba1 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 b655c77b..e790a805 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 dc5417e7..45354e49 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 cc22bd1e..b93a9e5c 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 6e8ed8ef..8c2be370 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 113495ef..78aea10f 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 809dc5ce..9e80400c 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 9dadef70..a43a46ee 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 662726c6..50d91c50 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 75484857..3ba5683d 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 b66ec725..e1cae5f0 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 b624e84c..5685c94a 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 061f1292..16e49e39 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 754ad4cd..f8abf5ef 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 e1c2ae50..b00f1e00 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 a5266f67..40c52847 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 b09471e8..9fea3e07 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 b4eb7c3a..48e80fca 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 596643c9..8e40d2ed 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 0685735d..890f9645 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 0f727426..a8b11070 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 3598e7ba..bae1dd58 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 47505390..f19e9312 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 09faa0dd..51fe7111 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 8daa25ef..1ee92ba6 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 6d2ae554..dc50eeaa 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 4c14ad5b..4b35cff4 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 fd30cc02..d74ad068 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 fbede40a..a44cbac3 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 e8e6f805..8811c185 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 d9b3ea70..43cc2b5c 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 0c072722..d88bd81f 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 4757fa06..08d06f69 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 fa0703c5..368077dd 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 ff826c32..f8beca80 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 3af9fb39..93f6f017 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 dbea2e13..3625a5b3 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 05208c73..3a2ffe66 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 393819c8..29748a42 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 87cb5f1b..75216202 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 9747c904..ba8e72bf 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 f8dac7c0..9255c4bd 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 5f6c31e3..645a31b6 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 0816efc5..f8b6e064 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 ee9c9464..e215667f 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 6640d74b..56228f6c 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 ea9c19e6..383403f1 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 e3f37d20..3d9860b5 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 1c1eb795..d429d616 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 0bf83298..ccfd7023 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 311f163b..5e8992c5 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 245c9e53..64c824b7 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 421d3599..8dfc4fa4 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 cdf7beb5..bdc98968 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 05369ca4..54bdb266 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 20ca2c82..9f2dfb19 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 2a80aa73..6dab9429 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 45edafbf..c144b6e1 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 a04e9edf..d92119e0 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 1947d6f0..36421031 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 7593ec47..fc432089 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 8e0b9434..9fe68782 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 e0813b44..67cf6b18 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 c42c7986..0275989e 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 5bc5593b..a3d9456b 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 a3b40a50..a4bd9f31 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 641d1969..f29dc061 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 7ae65359..07e9d6bb 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 aa5f42fa..c3d5f0c1 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 7b6e5deb..1a49323a 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 8c3cd19d..acc7a788 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 5268ac7d..5b3fe830 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 017df31a..48af00b3 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 eb02f79a..38a90f81 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 f709c175..851c917d 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 f776bf03..9e5e25a1 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 df22795a..02cdcb51 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 2ec86006..87907eeb 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 86feee8a..99ea32b4 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 50dc45fe..7df47261 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