Skip to content

Commit 467d491

Browse files
authored
Change license to Apache and OSPO policy compliance (#27)
1 parent 6409db5 commit 467d491

39 files changed

+868
-856
lines changed

LICENSE

Lines changed: 201 additions & 287 deletions
Large diffs are not rendered by default.

Package.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
// swift-tools-version: 5.7
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

4+
//
5+
// Copyright (Change Date see Readme), gematik GmbH
6+
//
7+
// Licensed under the Apache License, Version 2.0 (the "License");
8+
// you may not use this file except in compliance with the License.
9+
// You may obtain a copy of the License at
10+
//
11+
// http://www.apache.org/licenses/LICENSE-2.0
12+
//
13+
// Unless required by applicable law or agreed to in writing, software
14+
// distributed under the License is distributed on an "AS IS" BASIS,
15+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
// See the License for the specific language governing permissions and
17+
// limitations under the License.
18+
//
19+
// *******
20+
//
21+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
22+
//
23+
424
import PackageDescription
525

626
let package = Package(

README.md

Lines changed: 55 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1+
<img align="right" width="250" height="47" src="Gematik_Logo_Flag_With_Background.png"/> <br/>
2+
13
# OpenSSL-Swift
24

3-
Swift extension wrapper for gematik specific crypto operations with embedded OpenSSL
4-
5-
## Overview
5+
<details>
6+
<summary>Table of Contents</summary>
7+
<ol>
8+
<li>
9+
<a href="#about-the-project">About The Project</a>
10+
<ul>
11+
<li><a href="#release-notes">Release Notes</a></li>
12+
</ul>
13+
</li>
14+
<li>
15+
<a href="#getting-started">Getting Started</a>
16+
<ul>
17+
<li><a href="#prerequisites">Prerequisites</a></li>
18+
<li><a href="#installation">Installation</a></li>
19+
</ul>
20+
</li>
21+
<li><a href="#usage">Usage</a></li>
22+
<li><a href="#license">License</a></li>
23+
<li><a href="#contact">Contact</a></li>
24+
</ol>
25+
</details>
26+
27+
## About The Project
28+
29+
Swift extension wrapper for gematik specific crypto operations with embedded OpenSSL.
630

731
This Xcode-project downloads, compiles and embeds OpenSSL version 3.1.0 in a Swift framework that can be included
832
in MacOS/iOS Frameworks and Apps.
933

10-
There are three main parts of this project.
34+
There are three main parts of this project:
1135

1236
1. PreBuildPhase script 'Install OpenSSL' that runs before the OpenSSL target is build.
1337
Execution of this script [e.g. first time run] takes a while since it compiles and links
@@ -33,11 +57,16 @@ Accessing OpenSSL crypto operations directly from Swift allows us to not having
3357
memory that was allocated by the low-level OpenSSL operation, but instead hide this complex code from
3458
the casual user/developer that may need to use some of the features provided by this framework.
3559

60+
### Release Notes
61+
See [ReleaseNotes.md](./ReleaseNotes.md) for all information regarding the (newest) releases.
62+
3663
## Getting Started
3764

38-
### Setup for integration
65+
### Prerequisites
66+
67+
We don't support CocoaPods at all, however it might also work when setup accordingly.
3968

40-
We don't support CocoaPods at all, however it might also work when setup accordingly
69+
### Installation
4170

4271
**SPM:** Add via XCode or `Package.swift`
4372

@@ -53,14 +82,15 @@ github "gematik/OpenSSL-Swift" ~> 4.0
5382

5483
### Setup for development
5584

56-
5785
```shell script
5886
$ make setup
5987
```
6088

6189
Opening `OpenSSL-Swift.xcodeproj` and building/testing a scheme will execute the script `scripts/install_openssl`. The script will perform a download from [OpenSSL](https://www.openssl.org/) and compile frameworks for multiple platform/architecture combinations.
6290

63-
## Supported operations
91+
## Usage
92+
93+
### Supported operations
6494

6595
As mentioned in the Overview section of this document, only a small subset of OpenSSL's operations is made available.
6696
This section describes the operations that are supported.
@@ -219,21 +249,24 @@ To update the OpenSSL version embedded with the library you simply update the `s
219249
with the new OpenSSL version and appropriate SHA256 hash value.
220250

221251
## License
222-
223-
EUROPEAN UNION PUBLIC LICENCE v. 1.2
224-
225-
EUPL © the European Union 2007, 2016
226-
227-
Following terms apply:
228-
252+
253+
Copyright 2020-2025 gematik GmbH
254+
255+
Apache License, Version 2.0
256+
257+
See the [LICENSE](./LICENSE) for the specific language governing permissions and limitations under the License
258+
259+
## Additional Notes and Disclaimer from gematik GmbH
260+
229261
1. Copyright notice: Each published work result is accompanied by an explicit statement of the license conditions for use. These are regularly typical conditions in connection with open source or free software. Programs described/provided/linked here are free software, unless otherwise stated.
230-
231-
2. Permission notice: 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::
232-
262+
2. Permission notice: 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:
233263
1. The copyright notice (Item 1) and the permission notice (Item 2) shall be included in all copies or substantial portions of the Software.
234-
235264
2. The software is provided "as is" without warranty of any kind, either express or implied, including, but not limited to, the warranties of fitness for a particular purpose, merchantability, and/or non-infringement. The authors or copyright holders shall not be liable in any manner whatsoever for any damages or other claims arising from, out of or in connection with the software or the use or other dealings with the software, whether in an action of contract, tort, or otherwise.
236-
237265
3. The software is the result of research and development activities, therefore not necessarily quality assured and without the character of a liable product. For this reason, gematik does not provide any support or other user assistance (unless otherwise stated in individual cases and without justification of a legal obligation). Furthermore, there is no claim to further development and adaptation of the results to a more current state of the art.
238-
239-
3. Gematik may remove published results temporarily or permanently from the place of publication at any time without prior notice or justification.
266+
3. Gematik may remove published results temporarily or permanently from the place of publication at any time without prior notice or justification.
267+
4. Please note: Parts of this code may have been generated using AI-supported technology. Please take this into account, especially when troubleshooting, for security analyses and possible adjustments.
268+
269+
## Contact
270+
271+
This software is currently being tested to ensure its technical quality and legal compliance. Your feedback is highly valued.
272+
If you find any issues or have any suggestions or comments, or if you see any other ways in which we can improve, please reach out to: [email protected].

SECURITY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Security Policy
2+
3+
Since this software is not a productive version, please submit an issue or pull request for any bugs
4+
or vulnerabilities you find.
5+
6+
In case of a responsible disclosure, please follow instructions
7+
on https://www.gematik.de/datensicherheit#c1227.

Sources/OpenSSL/BigNumber.swift

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
//
2-
// Copyright 2016, European Community
3-
// Copyright 2023, gematik GmbH
4-
5-
// Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
6-
// European Commission – subsequent versions of the EUPL (the "Licence").
7-
// You may not use this work except in compliance with the Licence.
8-
9-
// You find a copy of the Licence in the "Licence" file or at
10-
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
11-
12-
// Unless required by applicable law or agreed to in writing,
13-
// software distributed under the Licence is distributed on an "AS IS" basis,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
15-
// In case of changes by gematik find details in the "Readme" file.
16-
17-
// See the Licence for the specific language governing permissions and limitations under the Licence.
2+
// Copyright (Change Date see Readme), gematik GmbH
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// *******
17+
//
18+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
1819
//
1920

2021
@_implementationOnly import COpenSSL

Sources/OpenSSL/CMS/CMSContentInfo.swift

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
//
2-
// Copyright 2016, European Community
3-
// Copyright 2023, gematik GmbH
4-
5-
// Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
6-
// European Commission – subsequent versions of the EUPL (the "Licence").
7-
// You may not use this work except in compliance with the Licence.
8-
9-
// You find a copy of the Licence in the "Licence" file or at
10-
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
11-
12-
// Unless required by applicable law or agreed to in writing,
13-
// software distributed under the Licence is distributed on an "AS IS" basis,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
15-
// In case of changes by gematik find details in the "Readme" file.
16-
17-
// See the Licence for the specific language governing permissions and limitations under the Licence.
2+
// Copyright (Change Date see Readme), gematik GmbH
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// *******
17+
//
18+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
1819
//
1920

2021
@_implementationOnly import COpenSSL

Sources/OpenSSL/Certificate/OCSPResponse.swift

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
//
2-
// Copyright 2016, European Community
3-
// Copyright 2023, gematik GmbH
4-
5-
// Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
6-
// European Commission – subsequent versions of the EUPL (the "Licence").
7-
// You may not use this work except in compliance with the Licence.
8-
9-
// You find a copy of the Licence in the "Licence" file or at
10-
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
11-
12-
// Unless required by applicable law or agreed to in writing,
13-
// software distributed under the Licence is distributed on an "AS IS" basis,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
15-
// In case of changes by gematik find details in the "Readme" file.
16-
17-
// See the Licence for the specific language governing permissions and limitations under the Licence.
2+
// Copyright (Change Date see Readme), gematik GmbH
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// *******
17+
//
18+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
1819
//
1920

2021
@_implementationOnly import COpenSSL

Sources/OpenSSL/Certificate/X509.swift

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
//
2-
// Copyright 2016, European Community
3-
// Copyright 2023, gematik GmbH
4-
5-
// Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
6-
// European Commission – subsequent versions of the EUPL (the "Licence").
7-
// You may not use this work except in compliance with the Licence.
8-
9-
// You find a copy of the Licence in the "Licence" file or at
10-
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
11-
12-
// Unless required by applicable law or agreed to in writing,
13-
// software distributed under the Licence is distributed on an "AS IS" basis,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
15-
// In case of changes by gematik find details in the "Readme" file.
16-
17-
// See the Licence for the specific language governing permissions and limitations under the Licence.
2+
// Copyright (Change Date see Readme), gematik GmbH
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// *******
17+
//
18+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
1819
//
1920

2021
@_implementationOnly import COpenSSL

Sources/OpenSSL/EC/BrainpoolP256r1.swift

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
//
2-
// Copyright 2016, European Community
3-
// Copyright 2023, gematik GmbH
4-
5-
// Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
6-
// European Commission – subsequent versions of the EUPL (the "Licence").
7-
// You may not use this work except in compliance with the Licence.
8-
9-
// You find a copy of the Licence in the "Licence" file or at
10-
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
11-
12-
// Unless required by applicable law or agreed to in writing,
13-
// software distributed under the Licence is distributed on an "AS IS" basis,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
15-
// In case of changes by gematik find details in the "Readme" file.
16-
17-
// See the Licence for the specific language governing permissions and limitations under the Licence.
2+
// Copyright (Change Date see Readme), gematik GmbH
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// *******
17+
//
18+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
1819
//
1920

2021
import Foundation

Sources/OpenSSL/EC/ECPrivateKey.swift

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
//
2-
// Copyright 2016, European Community
3-
// Copyright 2023, gematik GmbH
4-
5-
// Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
6-
// European Commission – subsequent versions of the EUPL (the "Licence").
7-
// You may not use this work except in compliance with the Licence.
8-
9-
// You find a copy of the Licence in the "Licence" file or at
10-
// https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
11-
12-
// Unless required by applicable law or agreed to in writing,
13-
// software distributed under the Licence is distributed on an "AS IS" basis,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
15-
// In case of changes by gematik find details in the "Readme" file.
16-
17-
// See the Licence for the specific language governing permissions and limitations under the Licence.
2+
// Copyright (Change Date see Readme), gematik GmbH
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// *******
17+
//
18+
// For additional notes and disclaimer from gematik and in case of changes by gematik find details in the "Readme" file.
1819
//
1920

2021
@_implementationOnly import COpenSSL

0 commit comments

Comments
 (0)