rpm
4.17.0
sign
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
13
extern
"C"
{
14
#endif
15
16
enum
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
};
22
typedef
rpmFlags
rpmSignFlags
;
23
24
struct
rpmSignArgs
{
25
char
*
keyid
;
26
pgpHashAlgo
hashalgo
;
27
rpmSignFlags
signflags
;
28
/* ... what else? */
29
};
30
37
int
rpmPkgSign
(
const
char
*path,
const
struct
rpmSignArgs
* args);
38
45
int
rpmPkgDelSign
(
const
char
*path,
const
struct
rpmSignArgs
* args);
46
47
54
int
rpmPkgDelFileSign
(
const
char
*path,
const
struct
rpmSignArgs
* args);
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
/* _RPMSIGN_H */
pgpHashAlgo
enum pgpHashAlgo_e pgpHashAlgo
9.4.
rpmPkgDelFileSign
int rpmPkgDelFileSign(const char *path, const struct rpmSignArgs *args)
Delete file signature(s) from a package.
rpmPkgSign
int rpmPkgSign(const char *path, const struct rpmSignArgs *args)
Sign a package.
rpmPkgDelSign
int rpmPkgDelSign(const char *path, const struct rpmSignArgs *args)
Delete signature(s) from a package.
rpmFlags
uint32_t rpmFlags
Definition:
rpmtypes.h:42
rpmSignFlags_e
rpmSignFlags_e
Definition:
rpmsign.h:16
RPMSIGN_FLAG_FSVERITY
@ RPMSIGN_FLAG_FSVERITY
Definition:
rpmsign.h:20
RPMSIGN_FLAG_IMA
@ RPMSIGN_FLAG_IMA
Definition:
rpmsign.h:18
RPMSIGN_FLAG_NONE
@ RPMSIGN_FLAG_NONE
Definition:
rpmsign.h:17
RPMSIGN_FLAG_RPMV3
@ RPMSIGN_FLAG_RPMV3
Definition:
rpmsign.h:19
rpmSignFlags
rpmFlags rpmSignFlags
Definition:
rpmsign.h:22
rpmSignArgs
Definition:
rpmsign.h:24
rpmSignArgs::signflags
rpmSignFlags signflags
Definition:
rpmsign.h:27
rpmSignArgs::hashalgo
pgpHashAlgo hashalgo
Definition:
rpmsign.h:26
rpmSignArgs::keyid
char * keyid
Definition:
rpmsign.h:25
Generated by
1.9.1