rpm 4.19.0
The RPM Package Manager
Loading...
Searching...
No Matches
rpmsign.h
Go to the documentation of this file.
1#ifndef _RPMSIGN_H
2#define _RPMSIGN_H
3
9#include <rpm/argv.h>
10#include <rpm/rpmpgp.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16enum rpmSignFlags_e {
17 RPMSIGN_FLAG_NONE = 0,
18 RPMSIGN_FLAG_IMA = (1 << 0),
19 RPMSIGN_FLAG_RPMV3 = (1 << 1),
20 RPMSIGN_FLAG_FSVERITY = (1 << 2),
21};
22typedef rpmFlags rpmSignFlags;
23
25 char *keyid;
26 pgpHashAlgo hashalgo;
27 rpmSignFlags signflags;
28 /* ... what else? */
29};
30
37int rpmPkgSign(const char *path, const struct rpmSignArgs * args);
38
45int rpmPkgDelSign(const char *path, const struct rpmSignArgs * args);
46
47
54int rpmPkgDelFileSign(const char *path, const struct rpmSignArgs * args);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* _RPMSIGN_H */
enum pgpHashAlgo_e pgpHashAlgo
int rpmPkgDelFileSign(const char *path, const struct rpmSignArgs *args)
int rpmPkgSign(const char *path, const struct rpmSignArgs *args)
int rpmPkgDelSign(const char *path, const struct rpmSignArgs *args)
Definition: rpmsign.h:24