darwinssl: un-break Leopard build after PKCS#12 change
authorNick Zitzmann <nickzman@gmail.com>
Thu, 9 Jan 2014 23:53:29 +0000 (17:53 -0600)
committerNick Zitzmann <nickzman@gmail.com>
Thu, 9 Jan 2014 23:53:29 +0000 (17:53 -0600)
It turns out errSecDecode wasn't defined in Leopard's headers. So
we use the enum's value instead.

Bug: http://curl.haxx.se/mail/lib-2013-12/0150.html
Reported by: Abram Pousada

lib/vtls/curl_darwinssl.c

index 22514b6c72583db81c174f14fadf0bb8436a4e43..b3bc4da7a0c49cc20b5e37db5f14e855dedbf375 100644 (file)
@@ -1256,7 +1256,7 @@ static CURLcode darwinssl_connect_step1(struct connectdata *conn,
           failf(data, "SSL: Incorrect password for the certificate \"%s\" "
                       "and its private key.", data->set.str[STRING_CERT]);
           break;
-        case errSecDecode: case -25257: /* errSecUnknownFormat */
+        case -26275: /* 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]);