1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 16:45:06 -05:00

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.
This commit is contained in:
Nick Zitzmann 2013-10-14 18:03:32 -05:00
parent 1dcc433661
commit 31e106c01c

View File

@ -1216,16 +1216,16 @@ static CURLcode darwinssl_connect_step1(struct connectdata *conn,
} }
else { else {
switch(err) { switch(err) {
case errSecPkcs12VerifyFailure: case errSecAuthFailed: case errSecAuthFailed: case -25264: /* errSecPkcs12VerifyFailure */
failf(data, "SSL: Incorrect password for the certificate \"%s\" " failf(data, "SSL: Incorrect password for the certificate \"%s\" "
"and its private key.", data->set.str[STRING_CERT]); "and its private key.", data->set.str[STRING_CERT]);
break; break;
case errSecDecode: case errSecUnknownFormat: case errSecDecode: case -25257: /* errSecUnknownFormat */
failf(data, "SSL: Couldn't make sense of the data in the " failf(data, "SSL: Couldn't make sense of the data in the "
"certificate \"%s\" and its private key.", "certificate \"%s\" and its private key.",
data->set.str[STRING_CERT]); data->set.str[STRING_CERT]);
break; break;
case errSecPassphraseRequired: case -25260: /* errSecPassphraseRequired */
failf(data, "SSL The certificate \"%s\" requires a password.", failf(data, "SSL The certificate \"%s\" requires a password.",
data->set.str[STRING_CERT]); data->set.str[STRING_CERT]);
break; break;