summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e6497a2)
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
rsa_t *rsa_pub = NULL;
f = fopen(fname, "r");
rsa_t *rsa_pub = NULL;
f = fopen(fname, "r");
rsa_pub = rsa_read_pem_public_key(f);
rsa_pub = rsa_read_pem_public_key(f);
if(rsa_priv) {
if(!rsa_pub) {
if(rsa_priv) {
if(!rsa_pub) {
f = fopen(fname, "r");
if(f) {
ecdsa_pub = get_pubkey(f);
f = fopen(fname, "r");
if(f) {
ecdsa_pub = get_pubkey(f);
rewind(f);
ecdsa_pub = ecdsa_read_pem_public_key(f);
}
rewind(f);
ecdsa_pub = ecdsa_read_pem_public_key(f);
}
if(ecdsa_priv) {
if(!ecdsa_pub) {
if(ecdsa_priv) {
if(!ecdsa_pub) {