Skip to content

Darwinssl: Test for errSecSuccess in PKCS12 import rather than noErr#993

Merged
bagder merged 1 commit into
curl:masterfrom
danielgustafsson:pkcs12import_returnvalue
Sep 6, 2016
Merged

Darwinssl: Test for errSecSuccess in PKCS12 import rather than noErr#993
bagder merged 1 commit into
curl:masterfrom
danielgustafsson:pkcs12import_returnvalue

Conversation

@danielgustafsson

Copy link
Copy Markdown
Member

Small nitpick: while noErr and errSecSuccess are defined as the same value, the API documentation states that SecPKCS12Import() returns errSecSuccess if there were no errors in importing. Ensure that a future change of the defined value doesn't break (however unlikely) and be consistent with the API docs.

https://developer.apple.com/reference/security/1396915-secpkcs12import

While noErr and errSecSuccess are defined as the same value, the API
documentation states that SecPKCS12Import() returns errSecSuccess if
there were no errors in importing. Ensure that a future change of the
defined value doesn't break (however unlikely) and be consistent with
the API docs.
@bagder bagder merged commit 022dbdb into curl:master Sep 6, 2016
@bagder

bagder commented Sep 6, 2016

Copy link
Copy Markdown
Member

thanks!

@lock lock Bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants