#ifndef H_RPMSIGNFILES #define H_RPMSIGNFILES #include #include #ifdef __cplusplus extern "C" { #endif /* This doesn't have c++ guards on its own */ #include #ifdef __cplusplus } #endif /** * Sign file digests in header into signature header * @param sigh package signature header * @param h package header * @param key signing key * @param keypass signing key password * @param keyid the key ID IMA embeds in the signature; typically the * Subject Key ID from an x509 certificate. * @return RPMRC_OK on success */ RPM_GNUC_INTERNAL rpmRC rpmSignFiles(Header sigh, Header h, const char *key, char *keypass, uint32_t keyid); #endif /* H_RPMSIGNFILES */