We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eac8cb commit c32d9c8Copy full SHA for c32d9c8
1 file changed
wolfcrypt/src/pkcs7.c
@@ -2758,8 +2758,7 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7,
2758
* hash must be known in order to create the surrounding ASN1 syntax
2759
* properly before writing out the content and generating the hash on the
2760
* fly and then creating the signature */
2761
- if (pkcs7->getContentCb != NULL && hashBuf == NULL &&
2762
- pkcs7->publicKeyOID == ECDSAk) {
+ if (hashBuf == NULL && pkcs7->publicKeyOID == ECDSAk) {
2763
WOLFSSL_MSG("Pre-calculated content hash is needed in this case");
2764
return BAD_FUNC_ARG;
2765
}
0 commit comments