From 13e254681d50bbf3db6ee92763dcc28f7cecad0d Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Wed, 9 Sep 2026 10:51:42 +0300 Subject: [PATCH] Add copyright header check IB-8622 Signed-off-by: Raul Metsma --- .github/workflows/build.yml | 6 + CMakeLists.txt | 3 + build.ps1 | 3 + cdoc/CDoc.cpp | 19 +-- cdoc/CDoc.h | 19 +-- cdoc/CDoc1Reader.cpp | 19 +-- cdoc/CDoc1Reader.h | 19 +-- cdoc/CDoc1Writer.cpp | 19 +-- cdoc/CDoc1Writer.h | 19 +-- cdoc/CDoc2.h | 19 +-- cdoc/CDoc2Reader.cpp | 19 +-- cdoc/CDoc2Reader.h | 19 +-- cdoc/CDoc2Writer.cpp | 19 +-- cdoc/CDoc2Writer.h | 19 +-- cdoc/CDocCipher.cpp | 19 +-- cdoc/CDocCipher.h | 19 +-- cdoc/CDocException.java | 20 +-- cdoc/CDocReader.h | 19 +-- cdoc/CDocWriter.h | 19 +-- cdoc/CMakeLists.txt | 3 + cdoc/Certificate.cpp | 19 +-- cdoc/Certificate.h | 19 +-- cdoc/Configuration.cpp | 21 +-- cdoc/Configuration.h | 19 +-- cdoc/Crypto.cpp | 19 +-- cdoc/Crypto.h | 19 +-- cdoc/CryptoBackend.cpp | 19 +-- cdoc/CryptoBackend.h | 19 +-- cdoc/DDocReader.cpp | 19 +-- cdoc/DDocReader.h | 19 +-- cdoc/DDocWriter.cpp | 19 +-- cdoc/DDocWriter.h | 19 +-- cdoc/Exports.h | 19 +-- cdoc/IStreamSource.java | 20 +-- cdoc/Io.cpp | 19 +-- cdoc/Io.h | 19 +-- cdoc/KeyShares.cpp | 19 +-- cdoc/KeyShares.h | 19 +-- cdoc/Lock.cpp | 19 +-- cdoc/Lock.h | 19 +-- cdoc/Logger.h | 19 +-- cdoc/NetworkBackend.cpp | 19 +-- cdoc/NetworkBackend.h | 19 +-- cdoc/PKCS11Backend.cpp | 19 +-- cdoc/PKCS11Backend.h | 19 +-- cdoc/RcptInfo.h | 19 +-- cdoc/Recipient.cpp | 19 +-- cdoc/Recipient.h | 19 +-- cdoc/Tar.cpp | 19 +-- cdoc/Tar.h | 19 +-- cdoc/ToolConf.h | 19 +-- cdoc/Utils.cpp | 19 +-- cdoc/Utils.h | 19 +-- cdoc/WinBackend.cpp | 19 +-- cdoc/WinBackend.h | 19 +-- cdoc/Wrapper.h | 19 +-- cdoc/XmlReader.cpp | 19 +-- cdoc/XmlReader.h | 19 +-- cdoc/XmlWriter.cpp | 19 +-- cdoc/XmlWriter.h | 19 +-- cdoc/ZStream.h | 19 +-- cdoc/cdoc-tool.cpp | 19 +-- cdoc/cdoc-tool.manifest | 2 + cdoc/json/LICENSE.MIT | 21 +++ cdoc/json/base.h | 6 + cdoc/json/defaults.h | 6 + cdoc/json/jwt.h | 6 + cdoc/json/traits.h | 6 + cdoc/libcdoc.rc | 3 + cdoc/utils/ct.h | 19 +-- cdoc/utils/memory.h | 19 +-- debian/copyright | 150 +++++++++++++++++- debian/rules | 3 + examples/java/build.gradle | 3 + examples/java/settings.gradle | 3 + .../src/main/java/ee/ria/cdoc/CDocTool.java | 3 + libcdoc.i | 20 +-- std_string_view.i | 13 ++ test/CMakeLists.txt | 3 + test/libcdoc_boost.cpp | 19 +-- test/pipe.h | 21 +-- vcpkg-triplets/arm-neon-android.cmake | 6 + vcpkg-triplets/arm64-android.cmake | 6 + vcpkg-triplets/arm64-x64-osx.cmake | 6 + vcpkg-triplets/x64-android.cmake | 6 + 85 files changed, 393 insertions(+), 1078 deletions(-) create mode 100644 cdoc/json/LICENSE.MIT diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9a0b2b0..117897ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + name: CI on: [push, pull_request] permissions: @@ -257,3 +260,6 @@ jobs: uses: github/codeql-action/upload-sarif@v4 with: sarif_file: sarif-results/cpp.sarif + copyright: + name: Check copyright headers + uses: open-eid/.github/.github/workflows/copyright.yml@b2d87c7447ebcc01beb54c84f3978a81c1d64877 # master diff --git a/CMakeLists.txt b/CMakeLists.txt index e11858a3..956ab399 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + cmake_minimum_required(VERSION 3.21) if(POLICY CMP0167) diff --git a/build.ps1 b/build.ps1 index 73b66117..daf7a97a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + #powershell -ExecutionPolicy ByPass -File build.ps1 param( [string]$libcdoc = $PSScriptRoot, diff --git a/cdoc/CDoc.cpp b/cdoc/CDoc.cpp index 2fac95f4..e0ec30b1 100644 --- a/cdoc/CDoc.cpp +++ b/cdoc/CDoc.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDoc1Writer.h" #include "CDoc1Reader.h" diff --git a/cdoc/CDoc.h b/cdoc/CDoc.h index 234127e7..54d7de5c 100644 --- a/cdoc/CDoc.h +++ b/cdoc/CDoc.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CDOC_H__ #define __CDOC_H__ diff --git a/cdoc/CDoc1Reader.cpp b/cdoc/CDoc1Reader.cpp index cb724f0d..c49f7172 100644 --- a/cdoc/CDoc1Reader.cpp +++ b/cdoc/CDoc1Reader.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDoc1Reader.h" diff --git a/cdoc/CDoc1Reader.h b/cdoc/CDoc1Reader.h index adfd4630..0e498f1d 100644 --- a/cdoc/CDoc1Reader.h +++ b/cdoc/CDoc1Reader.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/CDoc1Writer.cpp b/cdoc/CDoc1Writer.cpp index 5c0ef66c..8f57da40 100644 --- a/cdoc/CDoc1Writer.cpp +++ b/cdoc/CDoc1Writer.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDoc1Writer.h" diff --git a/cdoc/CDoc1Writer.h b/cdoc/CDoc1Writer.h index e5cf62c3..f63cb86f 100644 --- a/cdoc/CDoc1Writer.h +++ b/cdoc/CDoc1Writer.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/CDoc2.h b/cdoc/CDoc2.h index 2a687e0e..794dbb70 100644 --- a/cdoc/CDoc2.h +++ b/cdoc/CDoc2.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CDOC2_H__ #define __CDOC2_H__ diff --git a/cdoc/CDoc2Reader.cpp b/cdoc/CDoc2Reader.cpp index caf6a75b..a07ce34c 100644 --- a/cdoc/CDoc2Reader.cpp +++ b/cdoc/CDoc2Reader.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDoc2Reader.h" diff --git a/cdoc/CDoc2Reader.h b/cdoc/CDoc2Reader.h index 03ea3a92..d92fc95e 100644 --- a/cdoc/CDoc2Reader.h +++ b/cdoc/CDoc2Reader.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CDOC2_READER_H__ #define __CDOC2_READER_H__ diff --git a/cdoc/CDoc2Writer.cpp b/cdoc/CDoc2Writer.cpp index 5247d05e..76985062 100644 --- a/cdoc/CDoc2Writer.cpp +++ b/cdoc/CDoc2Writer.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDoc2Writer.h" diff --git a/cdoc/CDoc2Writer.h b/cdoc/CDoc2Writer.h index aa3eaa5b..9765022a 100644 --- a/cdoc/CDoc2Writer.h +++ b/cdoc/CDoc2Writer.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/CDocCipher.cpp b/cdoc/CDocCipher.cpp index b98b938e..bc057704 100644 --- a/cdoc/CDocCipher.cpp +++ b/cdoc/CDocCipher.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDocCipher.h" #include "CDocReader.h" diff --git a/cdoc/CDocCipher.h b/cdoc/CDocCipher.h index 1cb49457..734f3611 100644 --- a/cdoc/CDocCipher.h +++ b/cdoc/CDocCipher.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef CDOCCIPHER_H #define CDOCCIPHER_H diff --git a/cdoc/CDocException.java b/cdoc/CDocException.java index 19613b07..1fc7cfff 100644 --- a/cdoc/CDocException.java +++ b/cdoc/CDocException.java @@ -1,21 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.cdoc; diff --git a/cdoc/CDocReader.h b/cdoc/CDocReader.h index 1aa578a2..4cff9102 100644 --- a/cdoc/CDocReader.h +++ b/cdoc/CDocReader.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CDOCREADER_H__ #define __CDOCREADER_H__ diff --git a/cdoc/CDocWriter.h b/cdoc/CDocWriter.h index 2622b537..f7785a31 100644 --- a/cdoc/CDocWriter.h +++ b/cdoc/CDocWriter.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CDOCWRITER_H__ #define __CDOCWRITER_H__ diff --git a/cdoc/CMakeLists.txt b/cdoc/CMakeLists.txt index 44c87a68..d609ac03 100644 --- a/cdoc/CMakeLists.txt +++ b/cdoc/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + set(SCHEMAS schema/recipients.fbs schema/header.fbs diff --git a/cdoc/Certificate.cpp b/cdoc/Certificate.cpp index 1c047a41..906c8c82 100644 --- a/cdoc/Certificate.cpp +++ b/cdoc/Certificate.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include diff --git a/cdoc/Certificate.h b/cdoc/Certificate.h index 47cc7b3d..951c77e4 100644 --- a/cdoc/Certificate.h +++ b/cdoc/Certificate.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef SSLCERTIFICATE_H #define SSLCERTIFICATE_H diff --git a/cdoc/Configuration.cpp b/cdoc/Configuration.cpp index 256172a8..2c66f0d8 100644 --- a/cdoc/Configuration.cpp +++ b/cdoc/Configuration.cpp @@ -1,22 +1,7 @@ -#define __CONFIGURATION_CPP__ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +#define __CONFIGURATION_CPP__ #include "Configuration.h" diff --git a/cdoc/Configuration.h b/cdoc/Configuration.h index 4ca72e60..d1fd6095 100644 --- a/cdoc/Configuration.h +++ b/cdoc/Configuration.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CONFIGURATION_H__ #define __CONFIGURATION_H__ diff --git a/cdoc/Crypto.cpp b/cdoc/Crypto.cpp index bcf6314e..dbddbffb 100644 --- a/cdoc/Crypto.cpp +++ b/cdoc/Crypto.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "CDoc.h" #include "Crypto.h" diff --git a/cdoc/Crypto.h b/cdoc/Crypto.h index 58a7e346..d0da17f0 100644 --- a/cdoc/Crypto.h +++ b/cdoc/Crypto.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/CryptoBackend.cpp b/cdoc/CryptoBackend.cpp index 17694cfe..dc50527e 100644 --- a/cdoc/CryptoBackend.cpp +++ b/cdoc/CryptoBackend.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "Crypto.h" #include "CryptoBackend.h" diff --git a/cdoc/CryptoBackend.h b/cdoc/CryptoBackend.h index d3ce3c62..8fa63eca 100644 --- a/cdoc/CryptoBackend.h +++ b/cdoc/CryptoBackend.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __CRYPTOBACKEND_H__ #define __CRYPTOBACKEND_H__ diff --git a/cdoc/DDocReader.cpp b/cdoc/DDocReader.cpp index 643c3cfc..ebc96537 100644 --- a/cdoc/DDocReader.cpp +++ b/cdoc/DDocReader.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "DDocReader.h" #include "CDoc.h" diff --git a/cdoc/DDocReader.h b/cdoc/DDocReader.h index 8be469c7..21ed75e0 100644 --- a/cdoc/DDocReader.h +++ b/cdoc/DDocReader.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/DDocWriter.cpp b/cdoc/DDocWriter.cpp index 2133e8e4..86064d3c 100644 --- a/cdoc/DDocWriter.cpp +++ b/cdoc/DDocWriter.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "DDocWriter.h" diff --git a/cdoc/DDocWriter.h b/cdoc/DDocWriter.h index 9bfa48cb..1aaef7a9 100644 --- a/cdoc/DDocWriter.h +++ b/cdoc/DDocWriter.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/Exports.h b/cdoc/Exports.h index 8185ad8a..d0619fa0 100644 --- a/cdoc/Exports.h +++ b/cdoc/Exports.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __EXPORTS_H__ #define __EXPORTS_H__ diff --git a/cdoc/IStreamSource.java b/cdoc/IStreamSource.java index 7d2f7be5..8a152a2c 100644 --- a/cdoc/IStreamSource.java +++ b/cdoc/IStreamSource.java @@ -1,21 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.cdoc; diff --git a/cdoc/Io.cpp b/cdoc/Io.cpp index 5106212c..60033afa 100644 --- a/cdoc/Io.cpp +++ b/cdoc/Io.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "Io.h" diff --git a/cdoc/Io.h b/cdoc/Io.h index 5bc5eecf..04f1a441 100644 --- a/cdoc/Io.h +++ b/cdoc/Io.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __IO_H__ #define __IO_H__ diff --git a/cdoc/KeyShares.cpp b/cdoc/KeyShares.cpp index 23789012..33fa00bc 100644 --- a/cdoc/KeyShares.cpp +++ b/cdoc/KeyShares.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #define __KEYSHARES_CPP__ diff --git a/cdoc/KeyShares.h b/cdoc/KeyShares.h index 219fc0a3..535b8a2c 100644 --- a/cdoc/KeyShares.h +++ b/cdoc/KeyShares.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __KEYSHARES_H__ #define __KEYSHARES_H__ diff --git a/cdoc/Lock.cpp b/cdoc/Lock.cpp index 983e7c3c..7721a25e 100644 --- a/cdoc/Lock.cpp +++ b/cdoc/Lock.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "Lock.h" diff --git a/cdoc/Lock.h b/cdoc/Lock.h index e9adf3c0..e655e4f4 100644 --- a/cdoc/Lock.h +++ b/cdoc/Lock.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __LOCK_H__ #define __LOCK_H__ diff --git a/cdoc/Logger.h b/cdoc/Logger.h index a3d27234..1dce10c3 100644 --- a/cdoc/Logger.h +++ b/cdoc/Logger.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/NetworkBackend.cpp b/cdoc/NetworkBackend.cpp index 27ccbb7c..f2d3144e 100644 --- a/cdoc/NetworkBackend.cpp +++ b/cdoc/NetworkBackend.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "NetworkBackend.h" diff --git a/cdoc/NetworkBackend.h b/cdoc/NetworkBackend.h index 8a3b8621..51bb4c04 100644 --- a/cdoc/NetworkBackend.h +++ b/cdoc/NetworkBackend.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __NETWORKBACKEND_H__ #define __NETWORKBACKEND_H__ diff --git a/cdoc/PKCS11Backend.cpp b/cdoc/PKCS11Backend.cpp index 7a2bf1c7..649fafe0 100644 --- a/cdoc/PKCS11Backend.cpp +++ b/cdoc/PKCS11Backend.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "PKCS11Backend.h" #include "Certificate.h" diff --git a/cdoc/PKCS11Backend.h b/cdoc/PKCS11Backend.h index 4df96df6..93c9f0cf 100644 --- a/cdoc/PKCS11Backend.h +++ b/cdoc/PKCS11Backend.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __PKCS11_BACKEND_H__ #define __PKCS11_BACKEND_H__ diff --git a/cdoc/RcptInfo.h b/cdoc/RcptInfo.h index 9b6582a7..16959f66 100644 --- a/cdoc/RcptInfo.h +++ b/cdoc/RcptInfo.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef RCPTINFO_H #define RCPTINFO_H diff --git a/cdoc/Recipient.cpp b/cdoc/Recipient.cpp index 89e4f4c1..753a201c 100644 --- a/cdoc/Recipient.cpp +++ b/cdoc/Recipient.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "Recipient.h" diff --git a/cdoc/Recipient.h b/cdoc/Recipient.h index 2ac443b1..52673ff3 100644 --- a/cdoc/Recipient.h +++ b/cdoc/Recipient.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __RECIPIENT_H__ #define __RECIPIENT_H__ diff --git a/cdoc/Tar.cpp b/cdoc/Tar.cpp index 383f49e8..8c4d3891 100644 --- a/cdoc/Tar.cpp +++ b/cdoc/Tar.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "Tar.h" #include "Utils.h" diff --git a/cdoc/Tar.h b/cdoc/Tar.h index 696d4b02..31a3fff4 100644 --- a/cdoc/Tar.h +++ b/cdoc/Tar.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef TAR_H #define TAR_H diff --git a/cdoc/ToolConf.h b/cdoc/ToolConf.h index 73212acf..5221bd2a 100644 --- a/cdoc/ToolConf.h +++ b/cdoc/ToolConf.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef TOOLCONF_H #define TOOLCONF_H diff --git a/cdoc/Utils.cpp b/cdoc/Utils.cpp index 9495e2d0..f050f0de 100644 --- a/cdoc/Utils.cpp +++ b/cdoc/Utils.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "Utils.h" diff --git a/cdoc/Utils.h b/cdoc/Utils.h index d2e9d570..f239a88d 100644 --- a/cdoc/Utils.h +++ b/cdoc/Utils.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __LIBCDOC_UTILS_H__ #define __LIBCDOC_UTILS_H__ diff --git a/cdoc/WinBackend.cpp b/cdoc/WinBackend.cpp index 5aa62c42..5352149b 100644 --- a/cdoc/WinBackend.cpp +++ b/cdoc/WinBackend.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "WinBackend.h" diff --git a/cdoc/WinBackend.h b/cdoc/WinBackend.h index 5cd5851c..48528c5a 100644 --- a/cdoc/WinBackend.h +++ b/cdoc/WinBackend.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __LIBCDOC_WINBACKEND_H__ #define __LIBCDOC_WINBACKEND_H__ diff --git a/cdoc/Wrapper.h b/cdoc/Wrapper.h index 47e42ea1..f266c1bc 100644 --- a/cdoc/Wrapper.h +++ b/cdoc/Wrapper.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __WRAPPER_H__ #define __WRAPPER_H__ diff --git a/cdoc/XmlReader.cpp b/cdoc/XmlReader.cpp index 1fc8a382..26c987e4 100644 --- a/cdoc/XmlReader.cpp +++ b/cdoc/XmlReader.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "XmlReader.h" diff --git a/cdoc/XmlReader.h b/cdoc/XmlReader.h index cccbe488..d2f81247 100644 --- a/cdoc/XmlReader.h +++ b/cdoc/XmlReader.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/XmlWriter.cpp b/cdoc/XmlWriter.cpp index 7010559a..5113b6d6 100644 --- a/cdoc/XmlWriter.cpp +++ b/cdoc/XmlWriter.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include "XmlWriter.h" diff --git a/cdoc/XmlWriter.h b/cdoc/XmlWriter.h index 4f148f09..ea08334f 100644 --- a/cdoc/XmlWriter.h +++ b/cdoc/XmlWriter.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/ZStream.h b/cdoc/ZStream.h index eecfc5b5..998cb88a 100644 --- a/cdoc/ZStream.h +++ b/cdoc/ZStream.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef __ZSTREAM_H__ #define __ZSTREAM_H__ diff --git a/cdoc/cdoc-tool.cpp b/cdoc/cdoc-tool.cpp index 3e655b74..cbe96064 100644 --- a/cdoc/cdoc-tool.cpp +++ b/cdoc/cdoc-tool.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #include #ifndef _WIN32 diff --git a/cdoc/cdoc-tool.manifest b/cdoc/cdoc-tool.manifest index b51f3e73..de93bda4 100644 --- a/cdoc/cdoc-tool.manifest +++ b/cdoc/cdoc-tool.manifest @@ -1,4 +1,6 @@ + + diff --git a/cdoc/json/LICENSE.MIT b/cdoc/json/LICENSE.MIT new file mode 100644 index 00000000..7d583cec --- /dev/null +++ b/cdoc/json/LICENSE.MIT @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Dominik Thalhammer + +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. diff --git a/cdoc/json/base.h b/cdoc/json/base.h index 3682abac..2da7d91d 100644 --- a/cdoc/json/base.h +++ b/cdoc/json/base.h @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2018 Dominik Thalhammer +// SPDX-License-Identifier: MIT +// +// Vendored from https://github.com/Thalhammer/jwt-cpp +// Full licence text: LICENSE.MIT in this directory + #ifndef JWT_CPP_BASE_H #define JWT_CPP_BASE_H diff --git a/cdoc/json/defaults.h b/cdoc/json/defaults.h index eae9789a..6b0e826c 100644 --- a/cdoc/json/defaults.h +++ b/cdoc/json/defaults.h @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2018 Dominik Thalhammer +// SPDX-License-Identifier: MIT +// +// Vendored from https://github.com/Thalhammer/jwt-cpp +// Full licence text: LICENSE.MIT in this directory + #ifndef JWT_CPP_KAZUHO_PICOJSON_DEFAULTS_H #define JWT_CPP_KAZUHO_PICOJSON_DEFAULTS_H diff --git a/cdoc/json/jwt.h b/cdoc/json/jwt.h index b96f5ca9..66132cdd 100644 --- a/cdoc/json/jwt.h +++ b/cdoc/json/jwt.h @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2018 Dominik Thalhammer +// SPDX-License-Identifier: MIT +// +// Vendored from https://github.com/Thalhammer/jwt-cpp +// Full licence text: LICENSE.MIT in this directory + #ifndef JWT_CPP_JWT_H #define JWT_CPP_JWT_H diff --git a/cdoc/json/traits.h b/cdoc/json/traits.h index a03c2c9a..23eafd10 100644 --- a/cdoc/json/traits.h +++ b/cdoc/json/traits.h @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2018 Dominik Thalhammer +// SPDX-License-Identifier: MIT +// +// Vendored from https://github.com/Thalhammer/jwt-cpp +// Full licence text: LICENSE.MIT in this directory + #ifndef JWT_CPP_PICOJSON_TRAITS_H #define JWT_CPP_PICOJSON_TRAITS_H diff --git a/cdoc/libcdoc.rc b/cdoc/libcdoc.rc index 8170929d..029fd048 100644 --- a/cdoc/libcdoc.rc +++ b/cdoc/libcdoc.rc @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + #include VS_VERSION_INFO VERSIONINFO diff --git a/cdoc/utils/ct.h b/cdoc/utils/ct.h index 375a9721..7c1a6e6f 100644 --- a/cdoc/utils/ct.h +++ b/cdoc/utils/ct.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/cdoc/utils/memory.h b/cdoc/utils/memory.h index c441a5a2..c51b8e10 100644 --- a/cdoc/utils/memory.h +++ b/cdoc/utils/memory.h @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #pragma once diff --git a/debian/copyright b/debian/copyright index 1fa1be1f..a12bd7ca 100644 --- a/debian/copyright +++ b/debian/copyright @@ -3,8 +3,52 @@ Upstream-Contact: info@ria.ee Source: https://github.com/open-eid/libcdoc Files: * -Copyright: 2024-2025 Estonian Information System's Authority -License: LGPL-2.1 +Copyright: Estonian Information System Authority +License: LGPL-2.1+ + +Files: cdoc/fmt/* +Copyright: 2012-present Victor Zverovich +Comment: Vendored from https://github.com/fmtlib/fmt +License: Expat-with-fmt-exception + +Files: cdoc/httplib.h +Copyright: 2024 Yuji Hirose +Comment: Vendored from https://github.com/yhirose/cpp-httplib +License: Expat + +Files: cdoc/json/* +Copyright: 2018 Dominik Thalhammer +Comment: Vendored from https://github.com/Thalhammer/jwt-cpp +License: Expat + +Files: cdoc/json/picojson/* +Copyright: 2009-2010 Cybozu Labs, Inc. + 2011-2014 Kazuho Oku +Comment: Vendored via jwt-cpp from https://github.com/kazuho/picojson +License: BSD-2-clause + +Files: cdoc/pkcs11.h +Copyright: 2006, 2007 g10 Code GmbH + 2006 Andreas Jellinghaus +Comment: From the Scute project, http://www.scute.org/ +License: all-permissive + +Files: cdoc/schema/*.fbs +Copyright: 2023 Open Electronic Identity +Comment: CDoc2 container FlatBuffers schemas. +License: Expat + +Files: std_string_view.i +Copyright: SWIG contributors +License: SWIG-library + +Files: examples/java/gradlew + examples/java/gradlew.bat + examples/java/gradle/wrapper/gradle-wrapper.jar +Copyright: 2015-2021 the original authors +License: Apache-2.0 + +License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either @@ -18,3 +62,105 @@ License: LGPL-2.1 You should have received a copy of the GNU Lesser General Public License with your system, in /usr/share/common-licenses/LGPL-2.1 If not, see . + +License: Apache-2.0 + 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 + . + https://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. + . + On Debian systems the full text of the Apache License version 2.0 can be + found in /usr/share/common-licenses/Apache-2.0 + +License: SWIG-library + You may copy, modify, distribute, and make derivative works based on + this software, in source code or object code form, without + restriction. If you distribute the software to others, you may do + so according to the terms of your choice. This software is offered as + is, without warranty of any kind. + +License: Expat + 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: Expat-with-fmt-exception + 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. + . + --- Optional exception to the license --- + . + As an exception, if, as a result of your compiling your source code, portions + of this Software are embedded into a machine-executable object form of such + source code, you may redistribute such embedded portions in such object form + without including the above copyright and permission notices. + +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +License: all-permissive + This file is free software; as a special exception the author gives + unlimited permission to copy and/or distribute it, with or without + modifications, as long as this notice is preserved. + . + This file is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY, to the extent permitted by law; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. diff --git a/debian/rules b/debian/rules index 681ccd79..94c30134 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,7 @@ #!/usr/bin/make -f +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + DEB_MAKE_CHECK_TARGET = test %: diff --git a/examples/java/build.gradle b/examples/java/build.gradle index 4acef996..e1227795 100755 --- a/examples/java/build.gradle +++ b/examples/java/build.gradle @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + plugins { id 'java' } diff --git a/examples/java/settings.gradle b/examples/java/settings.gradle index 676612ba..72d4df2f 100644 --- a/examples/java/settings.gradle +++ b/examples/java/settings.gradle @@ -1 +1,4 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + rootProject.name = "cdoc" diff --git a/examples/java/src/main/java/ee/ria/cdoc/CDocTool.java b/examples/java/src/main/java/ee/ria/cdoc/CDocTool.java index 2b0cf6be..b014ad50 100644 --- a/examples/java/src/main/java/ee/ria/cdoc/CDocTool.java +++ b/examples/java/src/main/java/ee/ria/cdoc/CDocTool.java @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + package ee.ria.cdoc; import java.io.File; diff --git a/libcdoc.i b/libcdoc.i index 6bc01d3f..ae59d7de 100644 --- a/libcdoc.i +++ b/libcdoc.i @@ -1,21 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later %module(directors="1") CDoc diff --git a/std_string_view.i b/std_string_view.i index 51076bda..deb1427b 100644 --- a/std_string_view.i +++ b/std_string_view.i @@ -1,3 +1,16 @@ +/* SPDX-FileCopyrightText: SWIG contributors + * SPDX-License-Identifier: LicenseRef-SWIG-Library + * + * Adapted from the SWIG library file Lib/java/std_string.i. The SWIG library, + * under the Lib and Examples top level directories, is distributed under the + * following terms: + * + * You may copy, modify, distribute, and make derivative works based on + * this software, in source code or object code form, without + * restriction. If you distribute the software to others, you may do + * so according to the terms of your choice. This software is offered as + * is, without warranty of any kind. + */ /* ----------------------------------------------------------------------------- * std_string_view.i * diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 56b1ae3e..08e3242e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + add_executable(unittests libcdoc_boost.cpp ../cdoc/Crypto.cpp diff --git a/test/libcdoc_boost.cpp b/test/libcdoc_boost.cpp index 544c00b9..44f52a74 100644 --- a/test/libcdoc_boost.cpp +++ b/test/libcdoc_boost.cpp @@ -1,20 +1,5 @@ -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #define BOOST_TEST_MODULE "C++ Unit Tests for libcdoc" diff --git a/test/pipe.h b/test/pipe.h index 1a6b2b2d..c7a6acc3 100644 --- a/test/pipe.h +++ b/test/pipe.h @@ -1,22 +1,7 @@ -#pragma once +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later -/* - * libcdoc - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +#pragma once #include diff --git a/vcpkg-triplets/arm-neon-android.cmake b/vcpkg-triplets/arm-neon-android.cmake index 1754b1e9..3819b0d2 100644 --- a/vcpkg-triplets/arm-neon-android.cmake +++ b/vcpkg-triplets/arm-neon-android.cmake @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Based on vcpkg's triplet of the same name (MIT), https://github.com/microsoft/vcpkg +# Differs only in static CRT linkage and Android API level 30. + set(VCPKG_TARGET_ARCHITECTURE arm) set(VCPKG_CRT_LINKAGE static) set(VCPKG_LIBRARY_LINKAGE static) diff --git a/vcpkg-triplets/arm64-android.cmake b/vcpkg-triplets/arm64-android.cmake index 77cced4c..0f19e972 100644 --- a/vcpkg-triplets/arm64-android.cmake +++ b/vcpkg-triplets/arm64-android.cmake @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Based on vcpkg's triplet of the same name (MIT), https://github.com/microsoft/vcpkg +# Differs only in static CRT linkage and Android API level 30. + set(VCPKG_TARGET_ARCHITECTURE arm64) set(VCPKG_CRT_LINKAGE static) set(VCPKG_LIBRARY_LINKAGE static) diff --git a/vcpkg-triplets/arm64-x64-osx.cmake b/vcpkg-triplets/arm64-x64-osx.cmake index 2fe10148..7aba1a26 100644 --- a/vcpkg-triplets/arm64-x64-osx.cmake +++ b/vcpkg-triplets/arm64-x64-osx.cmake @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Based on vcpkg's arm64-osx triplet (MIT), https://github.com/microsoft/vcpkg +# Extended to a universal binary with a 14.0 deployment target. + set(VCPKG_TARGET_ARCHITECTURE arm64 x86_64) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE static) diff --git a/vcpkg-triplets/x64-android.cmake b/vcpkg-triplets/x64-android.cmake index 6ec5579e..e2d00654 100644 --- a/vcpkg-triplets/x64-android.cmake +++ b/vcpkg-triplets/x64-android.cmake @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Based on vcpkg's triplet of the same name (MIT), https://github.com/microsoft/vcpkg +# Differs only in static CRT linkage and Android API level 30. + set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_CRT_LINKAGE static) set(VCPKG_LIBRARY_LINKAGE static)