Skip to content

Conversation

@ospfranco
Copy link

@ospfranco ospfranco commented Dec 4, 2025

  • Bumps openSSL pod to latest version
  • Fixes various typos
  • Uses latest swift-format (I can try to undo/reduce this if the formatting changes are too polluting but applying formatting from Xcode also generates this changes)
  • Moves certain logs to main PassportReader class to avoid different files logging important data
  • Changes some variables and function to more clearly express what they are doing
  • Adds an option to enforce CA check for people who require it and want to protect against replay attacks
  • Revives cocoapod example app by excluding log options

@ospfranco ospfranco mentioned this pull request Dec 4, 2025
@ospfranco ospfranco changed the title Contributions Various Updates (OpenSSL, variable renaming, formatting) Dec 4, 2025
//

import Foundation
import OSLog
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here formatting changes make everything hard to read :S I'm sorry. Let me know if this is still ok to review/merge

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, could you undo the formatting please?
I'll manually include the updates to OpenSSL-Package and updates for CocoaPods (not the bump to latest as that requires more testing) but won't include the other code changes in this release (just lack of time) but once the PR is updated then I'll take a look.

I've already added custom AA (as per previous release) and that will be going up too

Copy link
Author

@ospfranco ospfranco Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to match the old formatting style via swift-format but it seems paranthesis spaces and other weird character spacing is not part of the official spec. Which tool are you using to format the code?

CleanShot 2025-12-11 at 09 27 46@2x

Copy link
Author

@ospfranco ospfranco Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking more carefully maybe you are not using a formatter? There are small random spaces in a few spots here and there?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried reducing my changes to the minimum but at this point no formatter can replicate the style that was there before. Let me know if you can review the code in this format. Basically at this point besides the code formatting the only other change is the enforceCA flag that forces chip authentication to prevent replay attacks. Though I would strongly encourage the use of a formatter.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are using xcode you can set up auto format on save. It's not the most straightforward process but better than nothing

https://medium.com/@jozott/format-on-save-xcode-swift-8133d049b3ac

or set up some git hooks to run auto format on commit

@ospfranco ospfranco changed the title Various Updates (OpenSSL, variable renaming, formatting) Update OpenSSL, variable renaming, formatting, enforce CA Dec 5, 2025
@ospfranco ospfranco force-pushed the contributions branch 3 times, most recently from 9f5f610 to e2b1241 Compare December 11, 2025 08:39
Update package

Update readme

Update to latest OpenSSL version, accept aa challenge and change name

Fix missing passing aaChallenge

Clean up code, correct typo and move logger calls to PassportReader.swift

Remove DS_Store

restore podspec name

Add option to enforce CA check

Revive cocoapods app

Revert team change and other xcode changes

Try to match previous formatting

Reset unrelated files

Restore readme

Try different formatting

format

format

format

Fix typos

Get rid of duplicated property

One more try at undo formatting

Restore old formatting

Typos

chip authentication
@ospfranco ospfranco requested a review from AndyQ December 11, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants