From 82690c16ab99f0e29074c4f6cef4c2a6be06a6b3 Mon Sep 17 00:00:00 2001 From: Marten Rebane Date: Fri, 25 Sep 2026 15:16:15 +0300 Subject: [PATCH] Add copyright header check --- .github/workflows/copyright.yml | 9 +++++++++ mvoting-nfc/nfc-demo/CardInfoView.swift | 20 ++----------------- mvoting-nfc/nfc-demo/CardOperations.swift | 20 ++----------------- mvoting-nfc/nfc-demo/ContentView.swift | 20 ++----------------- .../nfc-demo/NFCInterfaceManager.swift | 3 +++ mvoting-nfc/nfc-demo/Operator.swift | 20 ++----------------- mvoting-nfc/nfc-demo/nfc-demo.entitlements | 2 ++ mvoting-nfc/nfc-demo/nfc_demoApp.swift | 20 ++----------------- nfc-lib/nfc-lib/build_xcframework.sh | 2 ++ .../nfclib/CardActions/CardCommands.swift | 20 ++----------------- .../CardActions/CardCommandsInternal.swift | 20 ++----------------- .../nfc-lib/nfclib/CardActions/CardInfo.swift | 20 ++----------------- .../nfclib/CardActions/CardReader.swift | 20 ++----------------- .../nfclib/CardActions/CardReaderNFC.swift | 20 ++----------------- .../nfclib/CardActions/IDCardError.swift | 20 ++----------------- .../nfc-lib/nfclib/CardActions/Idemia.swift | 20 ++----------------- .../nfc-lib/nfclib/CardActions/Thales.swift | 20 ++----------------- .../Extensions/DataProtocol+Extension.swift | 20 ++----------------- .../Extensions/ECpublicKey+Extensions.swift | 20 ++----------------- .../Extensions/NFCISO7816Tag+Extensions.swift | 20 ++----------------- .../TKBERTLVRecord+Extensions.swift | 20 ++----------------- .../nfclib/Operations/NFCConnection.swift | 20 ++----------------- .../Operations/OperationReadCertificate.swift | 20 ++----------------- .../Operations/OperationReadPublicData.swift | 20 ++----------------- .../nfclib/Operations/OperationSignHash.swift | 20 ++----------------- .../Operations/OperationUnblockPin.swift | 20 ++----------------- nfc-lib/nfc-lib/nfclib/Utilities/AES.swift | 20 ++----------------- .../nfclib/Utilities/ProgressBar.swift | 20 ++----------------- .../nfc-lib/nfclib/Utilities/SecureData.swift | 20 ++----------------- .../nfc-lib/nfclib/Utilities/Utilities.swift | 20 ++----------------- .../OperationAuthenticateWithWebEID.swift | 20 ++----------------- .../nfc-lib/nfclib/WebEID/WebEIDHash.swift | 20 ++----------------- .../nfc-lib/nfclib/WebEID/WebEidData.swift | 20 ++----------------- nfc-lib/nfc-lib/nfclib/nfclib.h | 20 ++----------------- 34 files changed, 76 insertions(+), 540 deletions(-) create mode 100644 .github/workflows/copyright.yml diff --git a/.github/workflows/copyright.yml b/.github/workflows/copyright.yml new file mode 100644 index 0000000..2b30c81 --- /dev/null +++ b/.github/workflows/copyright.yml @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + +name: Copyright headers +on: [push, pull_request] +jobs: + copyright: + name: Check copyright headers + uses: open-eid/.github/.github/workflows/copyright.yml@b2d87c7447ebcc01beb54c84f3978a81c1d64877 # master diff --git a/mvoting-nfc/nfc-demo/CardInfoView.swift b/mvoting-nfc/nfc-demo/CardInfoView.swift index 3cc695e..031ecd3 100644 --- a/mvoting-nfc/nfc-demo/CardInfoView.swift +++ b/mvoting-nfc/nfc-demo/CardInfoView.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import SwiftUI import nfclib diff --git a/mvoting-nfc/nfc-demo/CardOperations.swift b/mvoting-nfc/nfc-demo/CardOperations.swift index b1582d9..e5d2484 100644 --- a/mvoting-nfc/nfc-demo/CardOperations.swift +++ b/mvoting-nfc/nfc-demo/CardOperations.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 /// `CardOperations` protocol /// diff --git a/mvoting-nfc/nfc-demo/ContentView.swift b/mvoting-nfc/nfc-demo/ContentView.swift index 3d01131..1f65731 100644 --- a/mvoting-nfc/nfc-demo/ContentView.swift +++ b/mvoting-nfc/nfc-demo/ContentView.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import SwiftUI import CryptoKit diff --git a/mvoting-nfc/nfc-demo/NFCInterfaceManager.swift b/mvoting-nfc/nfc-demo/NFCInterfaceManager.swift index 689f06a..df70321 100644 --- a/mvoting-nfc/nfc-demo/NFCInterfaceManager.swift +++ b/mvoting-nfc/nfc-demo/NFCInterfaceManager.swift @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + //// //// NFCInterfaceManager.swift //// nfc-demo diff --git a/mvoting-nfc/nfc-demo/Operator.swift b/mvoting-nfc/nfc-demo/Operator.swift index 20350d8..f0e3a07 100644 --- a/mvoting-nfc/nfc-demo/Operator.swift +++ b/mvoting-nfc/nfc-demo/Operator.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import nfclib import Foundation diff --git a/mvoting-nfc/nfc-demo/nfc-demo.entitlements b/mvoting-nfc/nfc-demo/nfc-demo.entitlements index 2bb4dee..96d7734 100644 --- a/mvoting-nfc/nfc-demo/nfc-demo.entitlements +++ b/mvoting-nfc/nfc-demo/nfc-demo.entitlements @@ -1,4 +1,6 @@ + + diff --git a/mvoting-nfc/nfc-demo/nfc_demoApp.swift b/mvoting-nfc/nfc-demo/nfc_demoApp.swift index fdb6d70..397b517 100644 --- a/mvoting-nfc/nfc-demo/nfc_demoApp.swift +++ b/mvoting-nfc/nfc-demo/nfc_demoApp.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import SwiftUI diff --git a/nfc-lib/nfc-lib/build_xcframework.sh b/nfc-lib/nfc-lib/build_xcframework.sh index c692fa5..8b5ab6d 100755 --- a/nfc-lib/nfc-lib/build_xcframework.sh +++ b/nfc-lib/nfc-lib/build_xcframework.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later set -e set -o pipefail diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/CardCommands.swift b/nfc-lib/nfc-lib/nfclib/CardActions/CardCommands.swift index a72f4de..a6721a5 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/CardCommands.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/CardCommands.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/CardCommandsInternal.swift b/nfc-lib/nfc-lib/nfclib/CardActions/CardCommandsInternal.swift index 8f9fc1b..de5b17d 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/CardCommandsInternal.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/CardCommandsInternal.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import CryptoTokenKit diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/CardInfo.swift b/nfc-lib/nfc-lib/nfclib/CardActions/CardInfo.swift index 31211d0..1875800 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/CardInfo.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/CardInfo.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 public struct CardInfo: Sendable, Hashable { public var givenName: String diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/CardReader.swift b/nfc-lib/nfc-lib/nfclib/CardActions/CardReader.swift index fcc8a3a..f7ca6ff 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/CardReader.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/CardReader.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/CardReaderNFC.swift b/nfc-lib/nfc-lib/nfclib/CardActions/CardReaderNFC.swift index b1c118a..7e07038 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/CardReaderNFC.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/CardReaderNFC.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import OSLog import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/IDCardError.swift b/nfc-lib/nfc-lib/nfclib/CardActions/IDCardError.swift index eb10711..4f68f05 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/IDCardError.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/IDCardError.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 public enum IdCardError: Error { case wrongCAN, diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/Idemia.swift b/nfc-lib/nfc-lib/nfclib/CardActions/Idemia.swift index 410306f..1ceef02 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/Idemia.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/Idemia.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation diff --git a/nfc-lib/nfc-lib/nfclib/CardActions/Thales.swift b/nfc-lib/nfc-lib/nfclib/CardActions/Thales.swift index d52e124..5634a82 100644 --- a/nfc-lib/nfc-lib/nfclib/CardActions/Thales.swift +++ b/nfc-lib/nfc-lib/nfclib/CardActions/Thales.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import CryptoTokenKit diff --git a/nfc-lib/nfc-lib/nfclib/Extensions/DataProtocol+Extension.swift b/nfc-lib/nfc-lib/nfclib/Extensions/DataProtocol+Extension.swift index 12404ee..fb6490b 100644 --- a/nfc-lib/nfc-lib/nfclib/Extensions/DataProtocol+Extension.swift +++ b/nfc-lib/nfc-lib/nfclib/Extensions/DataProtocol+Extension.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation internal import SwiftECC diff --git a/nfc-lib/nfc-lib/nfclib/Extensions/ECpublicKey+Extensions.swift b/nfc-lib/nfc-lib/nfclib/Extensions/ECpublicKey+Extensions.swift index b11bdac..2e1fbe3 100644 --- a/nfc-lib/nfc-lib/nfclib/Extensions/ECpublicKey+Extensions.swift +++ b/nfc-lib/nfc-lib/nfclib/Extensions/ECpublicKey+Extensions.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import CommonCrypto import CryptoTokenKit diff --git a/nfc-lib/nfc-lib/nfclib/Extensions/NFCISO7816Tag+Extensions.swift b/nfc-lib/nfc-lib/nfclib/Extensions/NFCISO7816Tag+Extensions.swift index f2c869f..48bd04e 100644 --- a/nfc-lib/nfc-lib/nfclib/Extensions/NFCISO7816Tag+Extensions.swift +++ b/nfc-lib/nfc-lib/nfclib/Extensions/NFCISO7816Tag+Extensions.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import OSLog @preconcurrency import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/Extensions/TKBERTLVRecord+Extensions.swift b/nfc-lib/nfc-lib/nfclib/Extensions/TKBERTLVRecord+Extensions.swift index afbff83..10de84b 100644 --- a/nfc-lib/nfc-lib/nfclib/Extensions/TKBERTLVRecord+Extensions.swift +++ b/nfc-lib/nfc-lib/nfclib/Extensions/TKBERTLVRecord+Extensions.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import CryptoTokenKit internal import SwiftECC diff --git a/nfc-lib/nfc-lib/nfclib/Operations/NFCConnection.swift b/nfc-lib/nfc-lib/nfclib/Operations/NFCConnection.swift index c637746..92d763d 100644 --- a/nfc-lib/nfc-lib/nfclib/Operations/NFCConnection.swift +++ b/nfc-lib/nfc-lib/nfclib/Operations/NFCConnection.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation @preconcurrency import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/Operations/OperationReadCertificate.swift b/nfc-lib/nfc-lib/nfclib/Operations/OperationReadCertificate.swift index 3337627..51054b6 100644 --- a/nfc-lib/nfc-lib/nfclib/Operations/OperationReadCertificate.swift +++ b/nfc-lib/nfc-lib/nfclib/Operations/OperationReadCertificate.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/Operations/OperationReadPublicData.swift b/nfc-lib/nfc-lib/nfclib/Operations/OperationReadPublicData.swift index 25493c4..3cf8e7b 100644 --- a/nfc-lib/nfc-lib/nfclib/Operations/OperationReadPublicData.swift +++ b/nfc-lib/nfc-lib/nfclib/Operations/OperationReadPublicData.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/Operations/OperationSignHash.swift b/nfc-lib/nfc-lib/nfclib/Operations/OperationSignHash.swift index d076cf7..efd1712 100644 --- a/nfc-lib/nfc-lib/nfclib/Operations/OperationSignHash.swift +++ b/nfc-lib/nfc-lib/nfclib/Operations/OperationSignHash.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/Operations/OperationUnblockPin.swift b/nfc-lib/nfc-lib/nfclib/Operations/OperationUnblockPin.swift index 26a45b5..0b83175 100644 --- a/nfc-lib/nfc-lib/nfclib/Operations/OperationUnblockPin.swift +++ b/nfc-lib/nfc-lib/nfclib/Operations/OperationUnblockPin.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/Utilities/AES.swift b/nfc-lib/nfc-lib/nfclib/Utilities/AES.swift index b87a141..e026b7b 100644 --- a/nfc-lib/nfc-lib/nfclib/Utilities/AES.swift +++ b/nfc-lib/nfc-lib/nfclib/Utilities/AES.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import CommonCrypto import Foundation diff --git a/nfc-lib/nfc-lib/nfclib/Utilities/ProgressBar.swift b/nfc-lib/nfc-lib/nfclib/Utilities/ProgressBar.swift index 9ad9ee3..c630e9d 100644 --- a/nfc-lib/nfc-lib/nfclib/Utilities/ProgressBar.swift +++ b/nfc-lib/nfc-lib/nfclib/Utilities/ProgressBar.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 struct ProgressBar { private let totalSteps: Int diff --git a/nfc-lib/nfc-lib/nfclib/Utilities/SecureData.swift b/nfc-lib/nfc-lib/nfclib/Utilities/SecureData.swift index 540f73c..fa1084b 100644 --- a/nfc-lib/nfc-lib/nfclib/Utilities/SecureData.swift +++ b/nfc-lib/nfc-lib/nfclib/Utilities/SecureData.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import Darwin // for memset_s diff --git a/nfc-lib/nfc-lib/nfclib/Utilities/Utilities.swift b/nfc-lib/nfc-lib/nfclib/Utilities/Utilities.swift index fdc2dc5..0d92f37 100644 --- a/nfc-lib/nfc-lib/nfclib/Utilities/Utilities.swift +++ b/nfc-lib/nfc-lib/nfclib/Utilities/Utilities.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation internal import SwiftECC diff --git a/nfc-lib/nfc-lib/nfclib/WebEID/OperationAuthenticateWithWebEID.swift b/nfc-lib/nfc-lib/nfclib/WebEID/OperationAuthenticateWithWebEID.swift index 3bb6a83..73b41f0 100644 --- a/nfc-lib/nfc-lib/nfclib/WebEID/OperationAuthenticateWithWebEID.swift +++ b/nfc-lib/nfc-lib/nfclib/WebEID/OperationAuthenticateWithWebEID.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import CoreNFC diff --git a/nfc-lib/nfc-lib/nfclib/WebEID/WebEIDHash.swift b/nfc-lib/nfc-lib/nfclib/WebEID/WebEIDHash.swift index 471d13c..0265387 100644 --- a/nfc-lib/nfc-lib/nfclib/WebEID/WebEIDHash.swift +++ b/nfc-lib/nfc-lib/nfclib/WebEID/WebEIDHash.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation import CommonCrypto diff --git a/nfc-lib/nfc-lib/nfclib/WebEID/WebEidData.swift b/nfc-lib/nfc-lib/nfclib/WebEID/WebEidData.swift index 67a9d0d..c992cc9 100644 --- a/nfc-lib/nfc-lib/nfclib/WebEID/WebEidData.swift +++ b/nfc-lib/nfc-lib/nfclib/WebEID/WebEidData.swift @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 import Foundation diff --git a/nfc-lib/nfc-lib/nfclib/nfclib.h b/nfc-lib/nfc-lib/nfclib/nfclib.h index 9ab9e1b..b629406 100644 --- a/nfc-lib/nfc-lib/nfclib/nfclib.h +++ b/nfc-lib/nfc-lib/nfclib/nfclib.h @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * 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 #import