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:
Christian Hohnstaedt 2024-02-23 00:48:23 +01:00
parent 8587566613
commit 6b9c16a36a

View File

@ -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;
}