Imported Upstream version 4.14.1
[platform/upstream/rpm.git] / sign / rpmsign.h
index 15b3e0f..bed8d62 100644 (file)
@@ -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
 }