summaryrefslogtreecommitdiffstats
path: root/RPM4/src/RPM4sign.c
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-26 18:14:33 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-26 18:14:33 +0000
commite1ec2d9d1128448df16ee25ff7f920be69c9581d (patch)
tree6f8bf1a07417a898f31fc1ab240b39b0577e3eaf /RPM4/src/RPM4sign.c
parent5db6ec0cdfd6c76c425182513311476ad140f347 (diff)
downloadperl-RPM4-e1ec2d9d1128448df16ee25ff7f920be69c9581d.tar
perl-RPM4-e1ec2d9d1128448df16ee25ff7f920be69c9581d.tar.gz
perl-RPM4-e1ec2d9d1128448df16ee25ff7f920be69c9581d.tar.bz2
perl-RPM4-e1ec2d9d1128448df16ee25ff7f920be69c9581d.tar.xz
perl-RPM4-e1ec2d9d1128448df16ee25ff7f920be69c9581d.zip
merge rpmsign() from RPM4sign.c into RPM4.xs
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@224 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/src/RPM4sign.c')
-rw-r--r--RPM4/src/RPM4sign.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/RPM4/src/RPM4sign.c b/RPM4/src/RPM4sign.c
deleted file mode 100644
index 13f4fad..0000000
--- a/RPM4/src/RPM4sign.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* $Id$ */
-
-#include "EXTERN.h"
-#include "perl.h"
-#include "XSUB.h"
-#include "rpmversion.h"
-
-#undef Fflush
-#undef Mkdir
-#undef Stat
-
-#include <rpm/rpmcli.h>
-#ifdef RPM4_9_0
-#include <rpm/rpmsign.h>
-#endif
-
-#include "RPM4.h"
-
-/* Hight level function */
-int rpmsign(char *passphrase, const char *rpm) {
-#ifdef RPM4_9_0
- return rpmPkgSign(rpm, NULL, passphrase);
-#else
- QVA_t qva = &rpmQVKArgs;
- ARGV_t file = NULL;
-
- argvAdd(&file, rpm);
-
- qva->qva_mode = RPMSIGN_ADD_SIGNATURE;
- qva->passPhrase = passphrase;
-
- return rpmcliSign(NULL, qva, file);
-#endif
-}
-