Modify eu-strip option to perform strip in post script of rpm package & add option...
[platform/upstream/rpm.git] / sign / rpmsign.h
1 #ifndef _RPMSIGN_H
2 #define _RPMSIGN_H
3
4 #include <rpm/argv.h>
5 #include <rpm/rpmpgp.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 struct rpmSignArgs {
12     char *keyid;
13     pgpHashAlgo hashalgo;
14     /* ... what else? */
15 };
16
17 /** \ingroup rpmsign
18  * Sign a package
19  * @param path          path to package
20  * @param args          signing parameters (or NULL for defaults)
21  * @param passPhrase    passphrase for the signing key
22  * @return              0 on success
23  */
24 int rpmPkgSign(const char *path,
25                const struct rpmSignArgs * args, const char *passPhrase);
26
27 /** \ingroup rpmsign
28  * Delete signature(s) from a package
29  * @param path          path to package
30  * @return              0 on success
31  */
32 int rpmPkgDelSign(const char *path);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* _RPMSIGN_H */