Skip to content

Commit

Permalink
(xmlsec-openssl) Assume all openssl keys are private since we don't h…
Browse files Browse the repository at this point in the history
…ave way to check (#856)
  • Loading branch information
lsh123 authored Nov 10, 2024
1 parent 5545aff commit dfd84ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/openssl/evp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dfd84ca

Please sign in to comment.