diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-07-29 07:34:17 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-07-29 07:34:17 +0000 | 
| commit | ae2f002b448c82d3a320abca734e85c5d82e483b (patch) | |
| tree | a2af5c12bb1717ddc8aad2285205a7ec6e8fa031 | |
| parent | 89c312691e6b0fb9de80294d59e205dff1835d09 (diff) | |
added typecast in an attempt to fix a mingw32 warning
| -rw-r--r-- | lib/ssluse.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 0a65dc32e..e17c329ff 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -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;  | 
