Skip to content

Commit

Permalink
openssl: fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Mar 24, 2015
1 parent 22bd8d8 commit 31a5986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ read_private_key_from_memory(void ** key_ctx,

*key_ctx = NULL;

bp = BIO_new_mem_buf(filedata, filedata_len);
bp = BIO_new_mem_buf((char *)filedata, filedata_len);
if (!bp) {
return -1;
}
Expand Down Expand Up @@ -891,7 +891,7 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session,
LIBSSH2_TRACE_AUTH,
"Computing public key from private key.");

bp = BIO_new_mem_buf(privatekeydata, privatekeydata_len);
bp = BIO_new_mem_buf((char *)privatekeydata, privatekeydata_len);
if (!bp) {
return -1;
}
Expand Down

0 comments on commit 31a5986

Please sign in to comment.