]> granicus.if.org Git - curl/commitdiff
added typecast in an attempt to fix a mingw32 warning
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jul 2004 07:34:17 +0000 (07:34 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jul 2004 07:34:17 +0000 (07:34 +0000)
lib/ssluse.c

index 0a65dc32e765c763e413905a70acf5fbfad3efcc..e17c329ff51b85db1955dff04a6a59a736b71617 100644 (file)
@@ -333,11 +333,13 @@ int cert_stuff(struct connectdata *conn,
             failf(data, "no key set to load from crypto engine\n");
             return 0;
           }
-          priv_key = ENGINE_load_private_key(conn->data->engine,key_file,
+          /* the typecast below was added to please mingw32 */
+          priv_key = (EVP_PKEY *)
+            ENGINE_load_private_key(conn->data->engine,key_file,
 #ifdef HAVE_ENGINE_LOAD_FOUR_ARGS
-                                             ui_method,
+                                    ui_method,
 #endif
-                                             data->set.key_passwd);
+                                    data->set.key_passwd);
           if(!priv_key) {
             failf(data, "failed to load private key from crypto engine\n");
             return 0;