diff options
Diffstat (limited to 'RPM4/src/RPM4sign.c')
-rw-r--r-- | RPM4/src/RPM4sign.c | 35 |
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 -} - |