mirror of https://github.com/thesofproject/sof.git
rimage: ace signing functions need openssl 3.0 guards
Ace signing functions need guards for not to use deprecated openssl functions and thus fail the compilation. Openssl3 implementation needs to be done as the added stub now returns just -EINVAL. Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
This commit is contained in:
parent
73a9d7c897
commit
02abc5d342
|
@ -529,6 +529,7 @@ int pkcs_v1_5_sign_man_v1_8(struct image *image,
|
|||
* extensions, and excluding the last 3 fields of the
|
||||
* manifest header (Public Key, Exponent and Signature).
|
||||
*/
|
||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||
int pkcs_v1_5_sign_man_ace_v1_5(struct image *image,
|
||||
struct fw_image_manifest_ace_v1_5 *man,
|
||||
void *ptr1, unsigned int size1, void *ptr2,
|
||||
|
@ -624,6 +625,15 @@ int pkcs_v1_5_sign_man_ace_v1_5(struct image *image,
|
|||
EVP_PKEY_free(privkey);
|
||||
return ret;
|
||||
}
|
||||
#else
|
||||
int pkcs_v1_5_sign_man_ace_v1_5(struct image *image,
|
||||
struct fw_image_manifest_ace_v1_5 *man,
|
||||
void *ptr1, unsigned int size1, void *ptr2,
|
||||
unsigned int size2)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
int pkcs_v1_5_sign_man_v2_5(struct image *image,
|
||||
struct fw_image_manifest_v2_5 *man,
|
||||
|
|
Loading…
Reference in New Issue