rpm 6.1.90
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
8
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 RPMSIGN_FLAG_RESIGN = (1 << 3),
22 RPMSIGN_FLAG_RPMV4 = (1 << 4),
23 RPMSIGN_FLAG_RPMV6 = (1 << 5),
24 RPMSIGN_FLAG_NOPAYLOAD = (1 << 6),
25};
26typedef rpmFlags rpmSignFlags;
27
29 char *keyid;
31 rpmSignFlags signflags;
32 /* ... what else? */
33};
34
41RPM_PUBLIC_API
42int rpmPkgSign(const char *path, const struct rpmSignArgs * args);
43
50RPM_PUBLIC_API
51int rpmPkgDelSign(const char *path, const struct rpmSignArgs * args);
52
53
60RPM_PUBLIC_API
61int rpmPkgDelFileSign(const char *path, const struct rpmSignArgs * args);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* _RPMSIGN_H */
enum pgpHashAlgo_e pgpHashAlgo
RPM_PUBLIC_API int rpmPkgDelSign(const char *path, const struct rpmSignArgs *args)
RPM_PUBLIC_API int rpmPkgDelFileSign(const char *path, const struct rpmSignArgs *args)
RPM_PUBLIC_API int rpmPkgSign(const char *path, const struct rpmSignArgs *args)
Definition rpmsign.h:28
rpmSignFlags signflags
Definition rpmsign.h:31
pgpHashAlgo hashalgo
Definition rpmsign.h:30
char * keyid
Definition rpmsign.h:29