diff options
Diffstat (limited to 'sign/rpmsignfiles.h')
-rw-r--r-- | sign/rpmsignfiles.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sign/rpmsignfiles.h b/sign/rpmsignfiles.h new file mode 100644 index 000000000..4163fafde --- /dev/null +++ b/sign/rpmsignfiles.h @@ -0,0 +1,25 @@ +#ifndef H_RPMSIGNFILES +#define H_RPMSIGNFILES + +#include <rpm/rpmtypes.h> +#include <rpm/rpmutil.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Sign file digests in header and store the signatures in header + * @param h package header + * @param key signing key + * @param keypass signing key password + * @return RPMRC_OK on success + */ +RPM_GNUC_INTERNAL +rpmRC rpmSignFiles(Header h, const char *key, char *keypass); + +#ifdef _cplusplus +} +#endif + +#endif /* H_RPMSIGNFILES */ |