Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Encapsulate session configuration #44

Merged
merged 8 commits into from
Oct 25, 2018
Merged

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Oct 25, 2018

A relevant number of fields in TunnelKitProvider.Configuration[Builder] is a 1:1 duplicate of SessionProxy.Configuration[Builder]. The original reason was a mismatch between inline PEMs (AppExtension) and paths to them (Core), as per OpenSSL requirement.

This PR:

  • Uses inline PEMs in Core too to resolve the content/path mismatch. Persists PEMs to a cache in the app group container (OpenSSL needs file paths to certs/keys).
  • Takes out of AppExtension those fields belonging to the Core area of the library (e.g. cipher, digest).
  • Reuses SessionProxy.Configuration in TunnelKitProvider.Configuration via composition.
  • Takes credentials out of SessionProxy.Configuration, which also prevents accidental persistence.

@keeshux keeshux added the enhancement New feature or request label Oct 25, 2018
@keeshux keeshux added this to the 1.3.0 milestone Oct 25, 2018
@keeshux keeshux self-assigned this Oct 25, 2018
@keeshux keeshux merged commit 2e31503 into master Oct 25, 2018
@keeshux keeshux deleted the encapsulate-session-configuration branch October 25, 2018 20:35
@keeshux keeshux added refactoring Improves software architecture and removed enhancement New feature or request labels Jul 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactoring Improves software architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant