Use SPDX identifiers
SPDX identifiers are simpler, and reduce the amount of cruft we have in
code files. They are recommended by linux foundation, and therefore we
should do as they allow.
This patchset does not intend to modify any intent on any existing
copyrights or licenses, only to standardize their inclusion.
[1] https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projects
Change-Id: I935c7c0156caa78fc368c929cebd0f068031e830
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/http/app.hpp b/http/app.hpp
index 08748a3..68f1642 100644
--- a/http/app.hpp
+++ b/http/app.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "async_resp.hpp"
diff --git a/http/complete_response_fields.hpp b/http/complete_response_fields.hpp
index a5468a4..46e0c66 100644
--- a/http/complete_response_fields.hpp
+++ b/http/complete_response_fields.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "authentication.hpp"
diff --git a/http/http2_connection.hpp b/http/http2_connection.hpp
index 35b192d..b3ba012 100644
--- a/http/http2_connection.hpp
+++ b/http/http2_connection.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "bmcweb_config.h"
diff --git a/http/http_body.hpp b/http/http_body.hpp
index 89baed2..9da892f 100644
--- a/http/http_body.hpp
+++ b/http/http_body.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "duplicatable_file_handle.hpp"
diff --git a/http/http_client.hpp b/http/http_client.hpp
index db426d6..58078c4 100644
--- a/http/http_client.hpp
+++ b/http/http_client.hpp
@@ -1,18 +1,6 @@
-/*
-Copyright (c) 2020 Intel Corporation
-
-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.
-*/
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
+// SPDX-FileCopyrightText: Copyright 2020 Intel Corporation
#pragma once
#include "async_resolve.hpp"
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index 927b825..9106764 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "bmcweb_config.h"
diff --git a/http/http_request.hpp b/http/http_request.hpp
index 74681cc..c2e7d8d 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "http_body.hpp"
diff --git a/http/http_response.hpp b/http/http_response.hpp
index c411f88..93cd4ac 100644
--- a/http/http_response.hpp
+++ b/http/http_response.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "http_body.hpp"
#include "logging.hpp"
diff --git a/http/http_server.hpp b/http/http_server.hpp
index 9fa927a..97c57ef 100644
--- a/http/http_server.hpp
+++ b/http/http_server.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "http_connection.hpp"
diff --git a/http/logging.hpp b/http/logging.hpp
index 40ca540..1028ca6 100644
--- a/http/logging.hpp
+++ b/http/logging.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "bmcweb_config.h"
diff --git a/http/mutual_tls.cpp b/http/mutual_tls.cpp
index 5ccf722..5f76145 100644
--- a/http/mutual_tls.cpp
+++ b/http/mutual_tls.cpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#include "mutual_tls.hpp"
#include "sessions.hpp"
diff --git a/http/mutual_tls.hpp b/http/mutual_tls.hpp
index 2af46f2..e37bef5 100644
--- a/http/mutual_tls.hpp
+++ b/http/mutual_tls.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "persistent_data.hpp"
diff --git a/http/mutual_tls_meta.hpp b/http/mutual_tls_meta.hpp
index 5e55db8..499d9a8 100644
--- a/http/mutual_tls_meta.hpp
+++ b/http/mutual_tls_meta.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "logging.hpp"
diff --git a/http/nghttp2_adapters.hpp b/http/nghttp2_adapters.hpp
index 61e45df..7345d2f 100644
--- a/http/nghttp2_adapters.hpp
+++ b/http/nghttp2_adapters.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
extern "C"
diff --git a/http/parsing.hpp b/http/parsing.hpp
index b39537c..3f83e49 100644
--- a/http/parsing.hpp
+++ b/http/parsing.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "http/http_request.hpp"
diff --git a/http/routing.hpp b/http/routing.hpp
index 85bc626..010ee2d 100644
--- a/http/routing.hpp
+++ b/http/routing.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "async_resp.hpp"
diff --git a/http/routing/baserule.hpp b/http/routing/baserule.hpp
index 14bbd47..770405b 100644
--- a/http/routing/baserule.hpp
+++ b/http/routing/baserule.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "async_resp.hpp"
diff --git a/http/routing/dynamicrule.hpp b/http/routing/dynamicrule.hpp
index 699fb2a..35753b7 100644
--- a/http/routing/dynamicrule.hpp
+++ b/http/routing/dynamicrule.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "baserule.hpp"
#include "ruleparametertraits.hpp"
diff --git a/http/routing/ruleparametertraits.hpp b/http/routing/ruleparametertraits.hpp
index 3ed9aa0..ed5311e 100644
--- a/http/routing/ruleparametertraits.hpp
+++ b/http/routing/ruleparametertraits.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "sserule.hpp"
diff --git a/http/routing/sserule.hpp b/http/routing/sserule.hpp
index 1a51ab0..0c9295e 100644
--- a/http/routing/sserule.hpp
+++ b/http/routing/sserule.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "baserule.hpp"
diff --git a/http/routing/taggedrule.hpp b/http/routing/taggedrule.hpp
index 5c0fe82..c6d60d4 100644
--- a/http/routing/taggedrule.hpp
+++ b/http/routing/taggedrule.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "baserule.hpp"
#include "dynamicrule.hpp"
diff --git a/http/routing/websocketrule.hpp b/http/routing/websocketrule.hpp
index e62943f..61743d5 100644
--- a/http/routing/websocketrule.hpp
+++ b/http/routing/websocketrule.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "baserule.hpp"
diff --git a/http/server_sent_event.hpp b/http/server_sent_event.hpp
index 72d0684..dd28705 100644
--- a/http/server_sent_event.hpp
+++ b/http/server_sent_event.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "boost_formatters.hpp"
#include "http_body.hpp"
diff --git a/http/utility.hpp b/http/utility.hpp
index 0cddb1c..edc34ad 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "bmcweb_config.h"
diff --git a/http/verb.hpp b/http/verb.hpp
index dd5af40..92bc360 100644
--- a/http/verb.hpp
+++ b/http/verb.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <boost/beast/http/verb.hpp>
diff --git a/http/websocket.hpp b/http/websocket.hpp
index 843aab3..6e5d1ed 100644
--- a/http/websocket.hpp
+++ b/http/websocket.hpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include "async_resp.hpp"
#include "http_body.hpp"