mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
PEM Export of keys: Avoid endless loop
calling the pem() function with one argument would call us (pem() with 2 arguments) again and we would call him again. This is no good :-)
This commit is contained in:
parent
8587566613
commit
6b9c16a36a
@ -812,7 +812,7 @@ bool pki_evp::pem(BioByteArray &b, const pki_export *xport)
|
||||
NULL, NULL);
|
||||
EVP_PKEY_free(pkey);
|
||||
} else
|
||||
return pki_key::pem(b);
|
||||
return pki_key::pem(b, xport);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user