[*] C warnings

This commit is contained in:
Reece Wilson 2022-06-14 17:19:22 +01:00
parent 17b1a738ca
commit a740e86a9a

View File

@ -12,7 +12,6 @@
int rsa_basic_export(unsigned char *out, unsigned long *outlen, const rsa_key *key, int flags)
{
unsigned long zero = 0;
int err;
LTC_ARGCHK(out != NULL);
LTC_ARGCHK(outlen != NULL);
LTC_ARGCHK(key != NULL);
@ -44,8 +43,6 @@ int rsa_basic_export(unsigned char *out, unsigned long *outlen, const rsa_key *k
else
{
/* public key */
unsigned long tmplen, *ptmplen;
unsigned char *tmp = NULL;
if (key->type != PK_PUBLIC)
{
@ -85,7 +82,7 @@ int rsa_pkcs8_export(unsigned char *out, unsigned long *outlen, const rsa_key *k
else
{
unsigned long oid[16];
unsigned long *oidReference;
const char *oidReference;
ltc_asn1_list alg_seq[2];