cosmetics
This commit is contained in:
@@ -460,8 +460,9 @@ rsa_public_key_t *rsa_public_key_create_from_file(char *filename)
|
|||||||
rsa_public_key_t *pubkey = NULL;
|
rsa_public_key_t *pubkey = NULL;
|
||||||
|
|
||||||
if (!pem_asn1_load_file(filename, NULL, "public key", &chunk, &pgp))
|
if (!pem_asn1_load_file(filename, NULL, "public key", &chunk, &pgp))
|
||||||
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
pubkey = rsa_public_key_create_from_chunk(chunk);
|
pubkey = rsa_public_key_create_from_chunk(chunk);
|
||||||
free(chunk.ptr);
|
free(chunk.ptr);
|
||||||
return pubkey;
|
return pubkey;
|
||||||
|
|||||||
Reference in New Issue
Block a user