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

Minimize dependencies of VPN implementations #1057

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Jan 14, 2025

OpenVPN

  • Make CPassepartoutCryptoOpenSSL agnostic of PassepartoutKit
    • Move Allocation/ZeroingData from PassepartoutKit to package for internal use
    • Rename ZeroingData.count to .length for consistency with NSData
    • Duplicate some Data manipulation code in CryptoOpenSSL
    • Retain a simplified version of ZeroingData in PassepartoutKit (AutoerasingData)

WireGuard

  • Make WireGuardKit imports internal

Decouple WireGuardAdapterDelegate from connection.
Keep CPassepartoutCryptoOpenSSL free of PassepartoutKit:

- Move Allocation/ZeroingData to the CryptoOpenSSL
package (internal use)
- Rename ZeroingData.count to .length for consistency
with NSData
- Duplicate some Data manipulation code in CryptoOpenSSL
- Add a simplified version of ZeroingData in PassepartoutKit
called AutoerasingData to retain SecureData operation
@keeshux keeshux changed the title Minimize dependency of VPN implementations on PassepartoutKit Minimize dependencies of VPN implementations Jan 14, 2025
@keeshux keeshux self-assigned this Jan 14, 2025
@keeshux keeshux added the refactoring Improves software architecture label Jan 14, 2025
@keeshux keeshux merged commit 7b8dbfe into master Jan 15, 2025
1 check passed
@keeshux keeshux deleted the refactoring/internal-imports branch January 15, 2025 08:40
keeshux added a commit that referenced this pull request Jan 15, 2025
keeshux added a commit that referenced this pull request Jan 15, 2025
The delegate was lost due to not being retained anywhere, and the
WireGuard adapter was therefore not finalizing the connection (i.e. set
tunnel settings).

Regression in #1057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenVPN refactoring Improves software architecture WireGuard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant