summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-29 16:15:04 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-29 16:15:04 +0300
commit7d290779219f34dd53e11a2f2fa3b31b905c040c (patch)
tree6cdff9d3d37fe104ebb36ae1d3f91becd3c5f9af /lib/signature.c
parenta6899e30d992ee8fbdf13bdd93688d95db210320 (diff)
downloadlibrpm-tizen-7d290779219f34dd53e11a2f2fa3b31b905c040c.tar.gz
librpm-tizen-7d290779219f34dd53e11a2f2fa3b31b905c040c.tar.bz2
librpm-tizen-7d290779219f34dd53e11a2f2fa3b31b905c040c.zip
And now sighdrPut() can be buried back into signature.c
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 10dc87f3f..fe8ad52f1 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -19,6 +19,19 @@
#include "debug.h"
+/* Dumb wrapper around headerPut() for signature header */
+static int sighdrPut(Header h, rpmSigTag tag, rpmTagType type,
+ rpm_data_t p, rpm_count_t c)
+{
+ struct rpmtd_s sigtd;
+ rpmtdReset(&sigtd);
+ sigtd.tag = tag;
+ sigtd.type = type;
+ sigtd.data = p;
+ sigtd.count = c;
+ return headerPut(h, &sigtd, HEADERPUT_DEFAULT);
+}
+
/**
* Print package size.
* @todo rpmio: use fdSize rather than fstat(2) to get file size.