From dfd84ca17fad2038b24a9739bb160a1a32fa12cc Mon Sep 17 00:00:00 2001 From: lsh123 Date: Sun, 10 Nov 2024 13:20:54 -0800 Subject: [PATCH] (xmlsec-openssl) Assume all openssl keys are private since we don't have way to check (#856) --- src/openssl/evp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openssl/evp.c b/src/openssl/evp.c index 7b84798a3..dcdcc1bf0 100644 --- a/src/openssl/evp.c +++ b/src/openssl/evp.c @@ -1071,7 +1071,8 @@ xmlSecOpenSSLKeyDataDsaGetValue(xmlSecKeyDataPtr data, xmlSecOpenSSLKeyValueDsaP } /* TODO: implement check for private key on a token (similar to keys on ENGINE) */ - dsaKeyValue->externalPrivKey = 0; + /* https://github.com/openssl/openssl/issues/9467 */ + dsaKeyValue->externalPrivKey = 1; /* success */ return(0); @@ -2506,7 +2507,8 @@ xmlSecOpenSSLKeyDataRsaGetValue(xmlSecKeyDataPtr data, xmlSecOpenSSLKeyValueRsaP } /* TODO: implement check for private key on a token (similar to keys on ENGINE) */ - rsaKeyValue->externalPrivKey = 0; + /* https://github.com/openssl/openssl/issues/9467 */ + rsaKeyValue->externalPrivKey = 1; /* success */ return(0);