diff --git a/sign/rpmsignfiles.cc b/sign/rpmsignfiles.cc index 05c6db6e43..c77f604d8f 100644 --- a/sign/rpmsignfiles.cc +++ b/sign/rpmsignfiles.cc @@ -42,6 +42,9 @@ const char *key, char *keypass, uint32_t *siglenp) unsigned char zeros[diglen]; unsigned char signature[MAX_SIGNATURE_LENGTH]; int siglen; + imaevm_ossl_access access_info = { + .type = IMAEVM_OSSL_ACCESS_TYPE_NONE, + }; /* some entries don't have a digest - we return an empty signature */ memset(zeros, 0, diglen); @@ -53,7 +56,7 @@ const char *key, char *keypass, uint32_t *siglenp) signature[0] = '\x03'; /* calculate file signature */ - siglen = sign_hash(algo, fdigest, diglen, key, keypass, signature+1); + siglen = imaevm_signhash(algo, fdigest, diglen, key, keypass, signature+1, 0, &access_info, 0); if (siglen < 0) { rpmlog(RPMLOG_ERR, _("sign_hash failed\n")); return NULL;