remove useless initialization

This commit is contained in:
Francois Perrad 2019-06-10 23:49:28 +02:00
parent c23f4699fb
commit 75d53696c2
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ int ec25519_import_pkcs8(const unsigned char *in, unsigned long inlen,
enum ltc_oid_id id, sk_to_pk fp,
curve25519_key *key)
{
int err = CRYPT_INVALID_ARG;
int err;
ltc_asn1_list *l = NULL;
const char *oid;
ltc_asn1_list alg_id[1];

View File

@ -31,7 +31,7 @@ static int _ed25519_decode(const unsigned char *in, unsigned long inlen, curve25
*/
int ed25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key)
{
int err = CRYPT_INVALID_ARG;
int err;
LTC_ARGCHK(in != NULL);
LTC_ARGCHK(key != NULL);

View File

@ -31,7 +31,7 @@ static int _x25519_decode(const unsigned char *in, unsigned long inlen, curve255
*/
int x25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key)
{
int err = CRYPT_INVALID_ARG;
int err;
LTC_ARGCHK(in != NULL);
LTC_ARGCHK(key != NULL);