rpm
6.0.1
The RPM Package Manager
Toggle main menu visibility
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
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
RPMSIGN_FLAG_RESIGN = (1 << 3),
22
RPMSIGN_FLAG_RPMV4 = (1 << 4),
23
RPMSIGN_FLAG_RPMV6 = (1 << 5),
24
};
25
typedef
rpmFlags rpmSignFlags;
26
27
struct
rpmSignArgs
{
28
char
*
keyid
;
29
pgpHashAlgo
hashalgo
;
30
rpmSignFlags
signflags
;
31
/* ... what else? */
32
};
33
40
int
rpmPkgSign
(
const
char
*path,
const
struct
rpmSignArgs
* args);
41
48
int
rpmPkgDelSign
(
const
char
*path,
const
struct
rpmSignArgs
* args);
49
50
57
int
rpmPkgDelFileSign
(
const
char
*path,
const
struct
rpmSignArgs
* args);
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* _RPMSIGN_H */
argv.h
pgpHashAlgo
enum pgpHashAlgo_e pgpHashAlgo
rpmPkgDelFileSign
int rpmPkgDelFileSign(const char *path, const struct rpmSignArgs *args)
rpmPkgSign
int rpmPkgSign(const char *path, const struct rpmSignArgs *args)
rpmPkgDelSign
int rpmPkgDelSign(const char *path, const struct rpmSignArgs *args)
rpmpgp.h
rpmSignArgs
Definition
rpmsign.h:27
rpmSignArgs::signflags
rpmSignFlags signflags
Definition
rpmsign.h:30
rpmSignArgs::hashalgo
pgpHashAlgo hashalgo
Definition
rpmsign.h:29
rpmSignArgs::keyid
char * keyid
Definition
rpmsign.h:28
include
rpm
rpmsign.h
Generated by
1.17.0