From 6b9c16a36aaa7bf1d72d35bf58a09324cd2d4c59 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Fri, 23 Feb 2024 00:48:23 +0100 Subject: [PATCH] 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 :-) --- lib/pki_evp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pki_evp.cpp b/lib/pki_evp.cpp index 7b0eb0e8..5291d2d4 100644 --- a/lib/pki_evp.cpp +++ b/lib/pki_evp.cpp @@ -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; }