diff options
Diffstat (limited to 'sign/rpmsign.h')
-rw-r--r-- | sign/rpmsign.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sign/rpmsign.h b/sign/rpmsign.h index 15b3e0fe8..bed8d6245 100644 --- a/sign/rpmsign.h +++ b/sign/rpmsign.h @@ -1,6 +1,11 @@ #ifndef _RPMSIGN_H #define _RPMSIGN_H +/** \file sign/rpmsign.h + * + * Signature API + */ + #include <rpm/argv.h> #include <rpm/rpmpgp.h> @@ -11,6 +16,7 @@ extern "C" { struct rpmSignArgs { char *keyid; pgpHashAlgo hashalgo; + int signfiles; /* ... what else? */ }; @@ -18,18 +24,17 @@ struct rpmSignArgs { * Sign a package * @param path path to package * @param args signing parameters (or NULL for defaults) - * @param passPhrase passphrase for the signing key * @return 0 on success */ -int rpmPkgSign(const char *path, - const struct rpmSignArgs * args, const char *passPhrase); +int rpmPkgSign(const char *path, const struct rpmSignArgs * args); /** \ingroup rpmsign * Delete signature(s) from a package * @param path path to package + * @param args signing parameters (or NULL for defaults) * @return 0 on success */ -int rpmPkgDelSign(const char *path); +int rpmPkgDelSign(const char *path, const struct rpmSignArgs * args); #ifdef __cplusplus } |