aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Zitzmann <nickzman@gmail.com>2013-10-14 18:03:32 -0500
committerNick Zitzmann <nickzman@gmail.com>2013-10-14 18:03:32 -0500
commit31e106c01c594190432c386e3d1de87af6c4f242 (patch)
tree6a00eb3f964c946e9141b64997b418136b1e911a /lib
parent1dcc433661f4e0f1de076791e108065618fb7003 (diff)
darwinssl: un-break iOS build after PKCS#12 feature added
SecPKCS12Import() returns a few errors that are enumerated in OS X's headers but not in iOS' headers for some reason.
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_darwinssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/curl_darwinssl.c b/lib/curl_darwinssl.c
index 43fe05336..fb404e9df 100644
--- a/lib/curl_darwinssl.c
+++ b/lib/curl_darwinssl.c
@@ -1216,16 +1216,16 @@ static CURLcode darwinssl_connect_step1(struct connectdata *conn,
}
else {
switch(err) {
- case errSecPkcs12VerifyFailure: case errSecAuthFailed:
+ case errSecAuthFailed: case -25264: /* errSecPkcs12VerifyFailure */
failf(data, "SSL: Incorrect password for the certificate \"%s\" "
"and its private key.", data->set.str[STRING_CERT]);
break;
- case errSecDecode: case errSecUnknownFormat:
+ case errSecDecode: case -25257: /* errSecUnknownFormat */
failf(data, "SSL: Couldn't make sense of the data in the "
"certificate \"%s\" and its private key.",
data->set.str[STRING_CERT]);
break;
- case errSecPassphraseRequired:
+ case -25260: /* errSecPassphraseRequired */
failf(data, "SSL The certificate \"%s\" requires a password.",
data->set.str[STRING_CERT]);
break;