Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/openssl-1.1.1] Migration to OpenSSL 1.1.0 #1116

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

hosy
Copy link
Collaborator

@hosy hosy commented Apr 5, 2022

Description

With Apple Silicon M1 it was no longer possible to build the app for Simulator.
Because we need to provide additional architecture, we using new OpenSSL as Swift package.
In the context of this, the code was migrated to OpenSSL 1.1.1.

  • migrated code to new OpenSSL 1.1.1 API
  • using OpenSSL Swift Package

Related Issue

Motivation and Context

Build against all architectures, using the latest OpenSSL version.

How Has This Been Tested?

  • Build and run on all platforms iOS, Mac Catalyst, Simulator, Device
  • Add a new account
  • Check if certificate output is the same as before migrating

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • Added an issue with details about all relevant changes in the iOS documentation repository.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Added changelog files for the fixed issues in folder changelog/unreleased

QA

Checklist: #1116 (comment)

Reports

@hosy hosy added this to the 11.9.0-Current milestone Apr 5, 2022
@hosy hosy self-assigned this Apr 5, 2022
@CLAassistant
Copy link

CLAassistant commented Apr 5, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ Matthias Hühne
❌ felix-schwarz


Matthias Hühne seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hosy hosy changed the title [feature/openssl-1.1.1] [feature/openssl-1.1.1] Migration to OpenSSL 1.1.0 Apr 6, 2022
@hosy hosy modified the milestones: 11.9.0-Current, 11.10.0-Current Apr 6, 2022
@felix-schwarz felix-schwarz changed the base branch from master to milestone/11.10.0 April 6, 2022 20:07
@jesmrec
Copy link
Contributor

jesmrec commented Apr 7, 2022

QA checks:

Add non-secure server from scratch

  • Review Connection Warning showed
  • Certificate correctly displayed
  • Cancel -> auth process cancelled
  • Approve -> "Certificate Details" as "Accepted". Certificate added to Settings certificate place
  • Revoke Approval in Settings -> Have to be approved again -> changes that does not change (version, key size, key exponent)

Certificate changed after account was added

  • Certificate changes but key does not -> auto approved. Correct reason displayed in Settings -> Certificates
  • Key changes -> User warned. Diff displayed. Added to Settings -> Certificates

iPhoneXR v15.3
iPadAir v14.7

@jesmrec
Copy link
Contributor

jesmrec commented Apr 7, 2022

(1) [WONT FIX]

Just a comment, maybe not affecting.

Building the branch with Xcode 12.5 -> error Undefined symbol: PocketSVG_PocketSVG_SWIFTPM_MODULE_BUNDLE() . I wasn't able to build the branch under that error, with all dependencies up to date.

Building the branch with Xcode 13.2 -> works.

Since the idea is upgrading to latest SDK, it would be not relevant, right?

@hosy
Copy link
Collaborator Author

hosy commented Apr 7, 2022

(1)

Just a comment, maybe not affecting.

Building the branch with Xcode 12.5 -> error Undefined symbol: PocketSVG_PocketSVG_SWIFTPM_MODULE_BUNDLE() . I wasn't able to build the branch under that error, with all dependencies up to date.

Building the branch with Xcode 13.2 -> works.

Since the idea is upgrading to latest SDK, it would be not relevant, right?

Yes, this is not a problem, because this branch will be build and shipped with Xcode 13.3. I think the problem is a new format of the package file. Not relevant, thank you for asking!

@jesmrec
Copy link
Contributor

jesmrec commented Apr 7, 2022

(2)

Not a regression -> not needed to be fixed here. Up to you.

  1. Add a server (insecure) and accept certificate
  2. Go to Settings and revoke certificate
  3. Open list of files -> Certificate issue
  4. Open Issue to check Certificate details

Current: some fields in the certificate do not seem to change but are marked as changes:

Screenshot 2022-04-07 at 15 02 02

iPhoneXR v15.3
7a3bb76d

@hosy
Copy link
Collaborator Author

hosy commented Apr 7, 2022

(2) should not be a blocker in this PR, but it could be added to the milestone PR and maybe @felix-schwarz can have a look. Thanks!

@jesmrec
Copy link
Contributor

jesmrec commented Apr 8, 2022

Checked the way certificates are shown in the app. It's OK from my side.

@jesmrec jesmrec added the Approved by QA Approved by QA label Apr 8, 2022
@hosy hosy merged commit 867c787 into milestone/11.10.0 Apr 8, 2022
@delete-merged-branch delete-merged-branch bot deleted the feature/openssl-1.1.1 branch April 8, 2022 14:07
hosy added a commit that referenced this pull request May 17, 2022
* set up a new version 11.10.0

* [feature/openssl-1.1.1] Migration to OpenSSL 1.1.0 (#1116)

* - migrated code to new OpenSSL 1.1.1 API
- using OpenSSL Package

* - update SDK

* - update ios-sdk

Co-authored-by: Matthias Hühne <>
Co-authored-by: Felix Schwarz <[email protected]>

* #1114 If app is build as EMM version, the app shows an licensing error, when running shortcut intents (could not read app bundle identifier in extension) (#1122)

Co-authored-by: Matthias Hühne <>

* [feature/iOS-15-SDK] Build with iOS 15 SDK (#1121)

* #1066 support for iOS 15 SDK: Solving UI issues, removing unneeded code

* - updated Xcode version for fastlane
- fastlane readme update

Co-authored-by: Matthias Hühne <>

* #1123 Account options were not dynamically provided for action "Delete Account Item", because of wrong intent configuration (#1125)

Co-authored-by: Matthias Hühne <>

* [fix/copy-timeout] Fix copy timeout (#1119)

* - update SDK for improved error handling
- add environment variable switch to enable/disable action-timeout-simulator host simulator

* - update SDK with changes addressing code review findings by @hosy in #1119

* - added release notes changelog files
- added in-app release notes
- changed app version number
- removed beta build warning

* added OpenSSL changelog entry

* updated Xcode version

* only perform table updates, when query is final to prevent flickering and showing empty folder message (QA finding 1, 2)

* moved changelog folder to new release folder

* updated fastlane release notes for App Store

* - change SDK reference from develop to release commit

* fixed typo

Co-authored-by: Matthias Hühne <>
Co-authored-by: Felix Schwarz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved by QA Approved by QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants