2015-07-22 01:00:41 +08:00
|
|
|
#ifndef H_RPMSIGNFILES
|
|
|
|
#define H_RPMSIGNFILES
|
|
|
|
|
2017-06-08 22:23:15 +08:00
|
|
|
#include <rpm/rpmtypes.h>
|
|
|
|
#include <rpm/rpmutil.h>
|
|
|
|
|
2015-07-22 01:00:41 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sign file digests in header and store the signatures in header
|
|
|
|
* @param h package header
|
|
|
|
* @param key signing key
|
2015-07-22 01:00:46 +08:00
|
|
|
* @param keypass signing key password
|
2015-07-22 01:00:41 +08:00
|
|
|
* @return RPMRC_OK on success
|
|
|
|
*/
|
2017-06-08 22:23:15 +08:00
|
|
|
RPM_GNUC_INTERNAL
|
2015-07-22 01:00:46 +08:00
|
|
|
rpmRC rpmSignFiles(Header h, const char *key, char *keypass);
|
|
|
|
|
2015-07-22 01:00:41 +08:00
|
|
|
#ifdef _cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* H_RPMSIGNFILES */
|