------------------------------------------------------------ revno: 5337 committer: Henrik Ziegeldorf <henrik.ziegeldorf@xxxxxxxxxxxxxx> branch nick: ecc timestamp: Mon 2011-01-10 11:18:07 +0100 message: Removed pointless casts of void * to DSA * and EC_KEY *. modified: lib/tool/pk.c -- lp:~hipl-core/hipl/ecc https://code.launchpad.net/~hipl-core/hipl/ecc Your team HIPL core team is subscribed to branch lp:~hipl-core/hipl/ecc. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/ecc/+edit-subscription
=== modified file 'lib/tool/pk.c' --- lib/tool/pk.c 2011-01-08 18:25:41 +0000 +++ lib/tool/pk.c 2011-01-10 10:18:07 +0000 @@ -88,7 +88,7 @@ */ int hip_ecdsa_sign(void *priv_key, struct hip_common *msg) { - EC_KEY *ecdsa = (EC_KEY *) priv_key; + EC_KEY *ecdsa = priv_key; uint8_t sha1_digest[HIP_AH_SHA_LEN]; uint8_t signature[ECDSA_size(ecdsa)]; int err = 0, len, siglen; @@ -127,7 +127,7 @@ */ int hip_dsa_sign(void *priv_key, struct hip_common *msg) { - DSA *dsa = (DSA *) priv_key; + DSA *dsa = priv_key; uint8_t sha1_digest[HIP_AH_SHA_LEN]; uint8_t signature[HIP_DSA_SIGNATURE_LEN]; int err = 0, len;