diff options
author | Martin Willi <martin@strongswan.org> | 2008-03-28 11:48:14 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-03-28 11:48:14 +0000 |
commit | dca40a94830f44e212f8a40a20f30a158610805e (patch) | |
tree | 7de4a5ad3939c69078cba6a3cc51b2c7bdcbc452 /src/pluto/smartcard.c | |
parent | 7539b1d1aa7b04d595ce83af96b46ac11132a690 (diff) | |
download | strongswan-dca40a94830f44e212f8a40a20f30a158610805e.tar.bz2 strongswan-dca40a94830f44e212f8a40a20f30a158610805e.tar.xz |
fixed all pluto compiler warnings
Diffstat (limited to 'src/pluto/smartcard.c')
-rw-r--r-- | src/pluto/smartcard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pluto/smartcard.c b/src/pluto/smartcard.c index 3e93c79ab..a458d528a 100644 --- a/src/pluto/smartcard.c +++ b/src/pluto/smartcard.c @@ -701,7 +701,7 @@ void scx_init(const char* module, const char *init_args) { #ifdef SMARTCARD - CK_C_INITIALIZE_ARGS args = { .pReserved = init_args, }; + CK_C_INITIALIZE_ARGS args = { .pReserved = (char *)init_args, }; CK_RV rv; if (scx_initialized) @@ -1442,7 +1442,7 @@ scx_encrypt(smartcard_t *sc, const u_char *in, size_t inlen if (rv == CKR_FUNCTION_NOT_SUPPORTED) { RSA_public_key_t rsa; - chunk_t plain_text = {in, inlen}; + chunk_t plain_text = {(u_char*)in, inlen}; chunk_t cipher_text; DBG(DBG_CONTROL, @@ -1496,7 +1496,7 @@ scx_encrypt(smartcard_t *sc, const u_char *in, size_t inlen DBG(DBG_CONTROL, DBG_log("doing RSA encryption on smartcard") ) - rv = pkcs11_functions->C_Encrypt(sc->session, in, inlen + rv = pkcs11_functions->C_Encrypt(sc->session, (u_char*)in, inlen , out, &len); if (rv != CKR_OK) { @@ -1570,7 +1570,7 @@ scx_decrypt(smartcard_t *sc, const u_char *in, size_t inlen return FALSE; } - rv = pkcs11_functions->C_Decrypt(sc->session, in, inlen + rv = pkcs11_functions->C_Decrypt(sc->session, (u_char*)in, inlen , out, &len); if (rv != CKR_OK) { |