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

HMAC breaking due to dangling OSSL_PARAM #405

Merged
merged 4 commits into from
Jan 5, 2024
Merged

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Jan 5, 2024

In CBC and CTR, the pointer to the HMAC digest name is a char * to a deallocated NSString, as the digest name is an init argument. This caused all sorts of OpenSSL misbehavior.

Arguably related to #403

Pointing to a deallocated NSString.
@keeshux keeshux added regression Used to work but doesn't anymore OpenVPN labels Jan 5, 2024
@keeshux keeshux self-assigned this Jan 5, 2024
@keeshux keeshux changed the title Fix dangling OSSL_PARAM HMAC breaking due to dangling OSSL_PARAM Jan 5, 2024
@keeshux keeshux added this to the Upgrade to OpenSSL 3 milestone Jan 5, 2024
@keeshux keeshux merged commit 3bafce9 into master Jan 5, 2024
1 check passed
@keeshux keeshux deleted the bugfix/dangling-ossl-param branch January 5, 2024 22:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OpenVPN regression Used to work but doesn't anymore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant