aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/totp/totp_example_test.go6
-rw-r--r--lib/totp/totp_test.go2
-rw-r--r--lib/websocket/AUTOBAHN.adoc4
-rw-r--r--lib/websocket/AUTOBAHN.html6
-rw-r--r--lib/websocket/BENCHMARK.html6
-rw-r--r--lib/websocket/BENCHMARK.md6
-rw-r--r--lib/websocket/clientmanager_test.go6
-rw-r--r--lib/websocket/closecode.go6
-rw-r--r--lib/websocket/contextkey.go6
-rw-r--r--lib/websocket/doc.go6
-rw-r--r--lib/websocket/examples/README.adoc4
-rw-r--r--lib/websocket/examples/README.html6
-rw-r--r--lib/websocket/examples/account.go6
-rw-r--r--lib/websocket/examples/cmd/client/main.go6
-rw-r--r--lib/websocket/examples/cmd/server/main.go6
-rw-r--r--lib/websocket/examples/examples.go6
-rw-r--r--lib/websocket/frames.go6
-rw-r--r--lib/websocket/funcs_test.go6
-rw-r--r--lib/websocket/handler.go6
-rw-r--r--lib/websocket/handshake_test.go6
-rw-r--r--lib/websocket/internal/autobahn/Makefile4
-rw-r--r--lib/websocket/internal/autobahn/autobahn.go4
-rw-r--r--lib/websocket/internal/autobahn/client/fuzzingserver.json.license3
-rw-r--r--lib/websocket/internal/autobahn/client/main.go6
-rw-r--r--lib/websocket/internal/autobahn/server/fuzzingclient.json.license3
-rw-r--r--lib/websocket/internal/autobahn/server/main.go6
-rw-r--r--lib/websocket/opcode.go6
-rw-r--r--lib/websocket/request_test.go6
-rw-r--r--lib/websocket/response_test.go6
-rw-r--r--lib/websocket/rootroute.go6
-rw-r--r--lib/websocket/rootroute_test.go6
-rw-r--r--lib/websocket/route.go6
-rw-r--r--lib/websocket/server_bench_test.go4
-rw-r--r--lib/websocket/server_options.go6
-rw-r--r--lib/websocket/server_test.go6
-rw-r--r--lib/websocket/targetparam.go6
-rw-r--r--lib/xmlrpc/client.go6
-rw-r--r--lib/xmlrpc/response.go6
-rw-r--r--lib/xmlrpc/response_test.go6
-rw-r--r--lib/xmlrpc/testdata/marshal_test.txt4
-rw-r--r--lib/xmlrpc/testdata/unmarshal_test.txt4
-rw-r--r--lib/xmlrpc/value_example_test.go6
-rw-r--r--lib/xmlrpc/xml.go6
-rw-r--r--lib/xmlrpc/xmlrpc.go6
44 files changed, 149 insertions, 91 deletions
diff --git a/lib/totp/totp_example_test.go b/lib/totp/totp_example_test.go
index 6c92267a..f02fec01 100644
--- a/lib/totp/totp_example_test.go
+++ b/lib/totp/totp_example_test.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package totp_test
diff --git a/lib/totp/totp_test.go b/lib/totp/totp_test.go
index 49f29c65..62f54dad 100644
--- a/lib/totp/totp_test.go
+++ b/lib/totp/totp_test.go
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
//
// SPDX-License-Identifier: BSD-3-Clause
diff --git a/lib/websocket/AUTOBAHN.adoc b/lib/websocket/AUTOBAHN.adoc
index e9039b90..b45c5bea 100644
--- a/lib/websocket/AUTOBAHN.adoc
+++ b/lib/websocket/AUTOBAHN.adoc
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+
= Autobahn WebSocket Testsuite Status Report
This document track the status report from autobahn testsuite [1].
diff --git a/lib/websocket/AUTOBAHN.html b/lib/websocket/AUTOBAHN.html
index c46d67ae..f90e47aa 100644
--- a/lib/websocket/AUTOBAHN.html
+++ b/lib/websocket/AUTOBAHN.html
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
+-->
+
<!DOCTYPE html>
<html>
<head>
diff --git a/lib/websocket/BENCHMARK.html b/lib/websocket/BENCHMARK.html
index 93ea2c24..960c1a74 100644
--- a/lib/websocket/BENCHMARK.html
+++ b/lib/websocket/BENCHMARK.html
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
+-->
+
<!DOCTYPE html>
<html>
<head>
diff --git a/lib/websocket/BENCHMARK.md b/lib/websocket/BENCHMARK.md
index d9aabaa1..0b6c4ee2 100644
--- a/lib/websocket/BENCHMARK.md
+++ b/lib/websocket/BENCHMARK.md
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
+-->
+
This note document a benchmark between gobwas vs our websocket library.
# github.com/gobwas/ws@v0.1.0
diff --git a/lib/websocket/clientmanager_test.go b/lib/websocket/clientmanager_test.go
index cb815fe1..41a12f3b 100644
--- a/lib/websocket/clientmanager_test.go
+++ b/lib/websocket/clientmanager_test.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/closecode.go b/lib/websocket/closecode.go
index 15236c18..8ba7dc4e 100644
--- a/lib/websocket/closecode.go
+++ b/lib/websocket/closecode.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/contextkey.go b/lib/websocket/contextkey.go
index 93e020d5..7f338366 100644
--- a/lib/websocket/contextkey.go
+++ b/lib/websocket/contextkey.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/doc.go b/lib/websocket/doc.go
index dbe3792a..932fc2ad 100644
--- a/lib/websocket/doc.go
+++ b/lib/websocket/doc.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package websocket provide a library for WebSocket server or client based on
// [RFC6455].
diff --git a/lib/websocket/examples/README.adoc b/lib/websocket/examples/README.adoc
index da90ea8b..e50f2931 100644
--- a/lib/websocket/examples/README.adoc
+++ b/lib/websocket/examples/README.adoc
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+
== WebSocket examples
This package contains an example of chat server and client written using
diff --git a/lib/websocket/examples/README.html b/lib/websocket/examples/README.html
index 71aec923..88dcc3ba 100644
--- a/lib/websocket/examples/README.html
+++ b/lib/websocket/examples/README.html
@@ -1,3 +1,9 @@
+<!--
+SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
+-->
+
<!DOCTYPE html>
<html>
<head>
diff --git a/lib/websocket/examples/account.go b/lib/websocket/examples/account.go
index 17b50668..372071e1 100644
--- a/lib/websocket/examples/account.go
+++ b/lib/websocket/examples/account.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package examples
diff --git a/lib/websocket/examples/cmd/client/main.go b/lib/websocket/examples/cmd/client/main.go
index 0ecd9a87..326a5c82 100644
--- a/lib/websocket/examples/cmd/client/main.go
+++ b/lib/websocket/examples/cmd/client/main.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Program client provide an example of chat client that connect to WebSocket
// server.
diff --git a/lib/websocket/examples/cmd/server/main.go b/lib/websocket/examples/cmd/server/main.go
index 96d09a9a..6ccd5fc6 100644
--- a/lib/websocket/examples/cmd/server/main.go
+++ b/lib/websocket/examples/cmd/server/main.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Program server provide an example of WebSocket server as group chat.
// The client that connect to the server must be authenticated using key.
diff --git a/lib/websocket/examples/examples.go b/lib/websocket/examples/examples.go
index 34c926e7..458b1dc1 100644
--- a/lib/websocket/examples/examples.go
+++ b/lib/websocket/examples/examples.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package examples provide an example on how to use WebSocket server and
// client.
diff --git a/lib/websocket/frames.go b/lib/websocket/frames.go
index 018c0b89..1c924920 100644
--- a/lib/websocket/frames.go
+++ b/lib/websocket/frames.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/funcs_test.go b/lib/websocket/funcs_test.go
index a8c9acf3..ff2d8ecf 100644
--- a/lib/websocket/funcs_test.go
+++ b/lib/websocket/funcs_test.go
@@ -1,6 +1,6 @@
-// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/handler.go b/lib/websocket/handler.go
index 50cd74cf..d3778260 100644
--- a/lib/websocket/handler.go
+++ b/lib/websocket/handler.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/handshake_test.go b/lib/websocket/handshake_test.go
index 9ef51410..55cf35ab 100644
--- a/lib/websocket/handshake_test.go
+++ b/lib/websocket/handshake_test.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/internal/autobahn/Makefile b/lib/websocket/internal/autobahn/Makefile
index 24883c94..d51e9ddd 100644
--- a/lib/websocket/internal/autobahn/Makefile
+++ b/lib/websocket/internal/autobahn/Makefile
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
##
## Run autobahn client to test our server.
##
diff --git a/lib/websocket/internal/autobahn/autobahn.go b/lib/websocket/internal/autobahn/autobahn.go
index 01c89481..ccdc392d 100644
--- a/lib/websocket/internal/autobahn/autobahn.go
+++ b/lib/websocket/internal/autobahn/autobahn.go
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+
// Package autobahn provides an helper to parse and print reports from
// result of Autobahn test suite.
package autobahn
diff --git a/lib/websocket/internal/autobahn/client/fuzzingserver.json.license b/lib/websocket/internal/autobahn/client/fuzzingserver.json.license
new file mode 100644
index 00000000..4c22e3a9
--- /dev/null
+++ b/lib/websocket/internal/autobahn/client/fuzzingserver.json.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
diff --git a/lib/websocket/internal/autobahn/client/main.go b/lib/websocket/internal/autobahn/client/main.go
index 0966c2ad..12b4302c 100644
--- a/lib/websocket/internal/autobahn/client/main.go
+++ b/lib/websocket/internal/autobahn/client/main.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package client provide a program to test WebSocket client implementation
// with autobahn testsuite.
diff --git a/lib/websocket/internal/autobahn/server/fuzzingclient.json.license b/lib/websocket/internal/autobahn/server/fuzzingclient.json.license
new file mode 100644
index 00000000..4c22e3a9
--- /dev/null
+++ b/lib/websocket/internal/autobahn/server/fuzzingclient.json.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+
+SPDX-License-Identifier: BSD-3-Clause
diff --git a/lib/websocket/internal/autobahn/server/main.go b/lib/websocket/internal/autobahn/server/main.go
index 78c45624..1b00b28c 100644
--- a/lib/websocket/internal/autobahn/server/main.go
+++ b/lib/websocket/internal/autobahn/server/main.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package server provide a program for testing WebSocket server implement
// with autobahn testsuite.
diff --git a/lib/websocket/opcode.go b/lib/websocket/opcode.go
index 0001b017..5fe190cd 100644
--- a/lib/websocket/opcode.go
+++ b/lib/websocket/opcode.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/request_test.go b/lib/websocket/request_test.go
index d8dd7372..bdebd720 100644
--- a/lib/websocket/request_test.go
+++ b/lib/websocket/request_test.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/response_test.go b/lib/websocket/response_test.go
index 642cfe79..bfcf275f 100644
--- a/lib/websocket/response_test.go
+++ b/lib/websocket/response_test.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/rootroute.go b/lib/websocket/rootroute.go
index 0d2f6027..12f5a67e 100644
--- a/lib/websocket/rootroute.go
+++ b/lib/websocket/rootroute.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/rootroute_test.go b/lib/websocket/rootroute_test.go
index 29c861ab..74bf0ba7 100644
--- a/lib/websocket/rootroute_test.go
+++ b/lib/websocket/rootroute_test.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/route.go b/lib/websocket/route.go
index 51d16c45..90960482 100644
--- a/lib/websocket/route.go
+++ b/lib/websocket/route.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/server_bench_test.go b/lib/websocket/server_bench_test.go
index d63b7c57..4e0d0ef2 100644
--- a/lib/websocket/server_bench_test.go
+++ b/lib/websocket/server_bench_test.go
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+
// This benchmark is taken from github.com/gobwas/ws [1][2].
//
// [1] https://github.com/gobwas/ws/blob/master/server_test.go
diff --git a/lib/websocket/server_options.go b/lib/websocket/server_options.go
index 0c169188..e736d19a 100644
--- a/lib/websocket/server_options.go
+++ b/lib/websocket/server_options.go
@@ -1,6 +1,6 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/server_test.go b/lib/websocket/server_test.go
index fe8d640a..cbce1f44 100644
--- a/lib/websocket/server_test.go
+++ b/lib/websocket/server_test.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/websocket/targetparam.go b/lib/websocket/targetparam.go
index bbebe230..b8b5ab32 100644
--- a/lib/websocket/targetparam.go
+++ b/lib/websocket/targetparam.go
@@ -1,6 +1,6 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package websocket
diff --git a/lib/xmlrpc/client.go b/lib/xmlrpc/client.go
index 3bc537a5..dd8114d3 100644
--- a/lib/xmlrpc/client.go
+++ b/lib/xmlrpc/client.go
@@ -1,6 +1,6 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package xmlrpc
diff --git a/lib/xmlrpc/response.go b/lib/xmlrpc/response.go
index 934bdd46..3fcce8f7 100644
--- a/lib/xmlrpc/response.go
+++ b/lib/xmlrpc/response.go
@@ -1,6 +1,6 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package xmlrpc
diff --git a/lib/xmlrpc/response_test.go b/lib/xmlrpc/response_test.go
index d02814b2..7880bfae 100644
--- a/lib/xmlrpc/response_test.go
+++ b/lib/xmlrpc/response_test.go
@@ -1,6 +1,6 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package xmlrpc
diff --git a/lib/xmlrpc/testdata/marshal_test.txt b/lib/xmlrpc/testdata/marshal_test.txt
index 9ad3d896..bef67c20 100644
--- a/lib/xmlrpc/testdata/marshal_test.txt
+++ b/lib/xmlrpc/testdata/marshal_test.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
Test marshaling.
<<< method.name
diff --git a/lib/xmlrpc/testdata/unmarshal_test.txt b/lib/xmlrpc/testdata/unmarshal_test.txt
index 0b4535d2..03c3f5ca 100644
--- a/lib/xmlrpc/testdata/unmarshal_test.txt
+++ b/lib/xmlrpc/testdata/unmarshal_test.txt
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+
Test unmarshaling.
>>> Multiple param
diff --git a/lib/xmlrpc/value_example_test.go b/lib/xmlrpc/value_example_test.go
index 5933e5b8..95bee82f 100644
--- a/lib/xmlrpc/value_example_test.go
+++ b/lib/xmlrpc/value_example_test.go
@@ -1,6 +1,6 @@
-// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package xmlrpc
diff --git a/lib/xmlrpc/xml.go b/lib/xmlrpc/xml.go
index ca77abe7..3df1fcaf 100644
--- a/lib/xmlrpc/xml.go
+++ b/lib/xmlrpc/xml.go
@@ -1,6 +1,6 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package xmlrpc
diff --git a/lib/xmlrpc/xmlrpc.go b/lib/xmlrpc/xmlrpc.go
index e35ce765..19b3458d 100644
--- a/lib/xmlrpc/xmlrpc.go
+++ b/lib/xmlrpc/xmlrpc.go
@@ -1,6 +1,6 @@
-// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
// Package xmlrpc provide an implementation of XML-RPC specification,
// http://xmlrpc.com/spec.md.