summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2002-02-14 09:59:35 +0000
committerBen Laurie <ben@openssl.org>2002-02-14 09:59:35 +0000
commitf43acc8a504f995a5662aa85c292b494a2d1d4e3 (patch)
tree52571d141a69f5f702f12e58eb8da1905ab439d6 /crypto
parentba47f5c9b0542022ac17781ebaa0e4407838fba2 (diff)
Fix warnings.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/engine/hw_sureware.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/crypto/engine/hw_sureware.c b/crypto/engine/hw_sureware.c
index d48e65906f..3d2ff36033 100644
--- a/crypto/engine/hw_sureware.c
+++ b/crypto/engine/hw_sureware.c
@@ -95,9 +95,11 @@ static EVP_PKEY *surewarehk_load_privkey(ENGINE *e, const char *key_id,
static EVP_PKEY *surewarehk_load_pubkey(ENGINE *e, const char *key_id,
UI_METHOD *ui_method, void *callback_data);
static void surewarehk_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad,
- int index,long argl, void *argp);
+ int index_,long argl, void *argp);
+#if 0
static void surewarehk_dh_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad,
- int index,long argl, void *argp);
+ int index_,long argl, void *argp);
+#endif
/* This function is aliased to mod_exp (with the mont stuff dropped). */
static int surewarehk_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
@@ -759,7 +761,7 @@ static EVP_PKEY *surewarehk_load_pubkey(ENGINE *e, const char *key_id,
/* This cleans up an RSA/DSA KM key(do not destroy the key into the hardware)
, called when ex_data is freed */
static void surewarehk_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad,
- int index,long argl, void *argp)
+ int index_,long argl, void *argp)
{
if(!p_surewarehk_Free)
{
@@ -768,10 +770,12 @@ static void surewarehk_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad,
else
p_surewarehk_Free((char *)item,0);
}
+#if 0
+/* not currently used (bug?) */
/* This cleans up an DH KM key (destroys the key into hardware),
called when ex_data is freed */
static void surewarehk_dh_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad,
- int index,long argl, void *argp)
+ int index_,long argl, void *argp)
{
if(!p_surewarehk_Free)
{
@@ -780,6 +784,7 @@ static void surewarehk_dh_ex_free(void *obj, void *item, CRYPTO_EX_DATA *ad,
else
p_surewarehk_Free((char *)item,1);
}
+#endif
/*
* return number of decrypted bytes
*/