summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-11-15 14:03:19 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-11-15 14:03:19 +0200
commit3a168d6927ec8c647b06b3f437c1503305141eb3 (patch)
tree7fbf522a5d499f92882be3a98175c6b11958f65e /rpmio
parent589b54af909b5ee8e98818291b955b0951b1c26c (diff)
downloadrpm-3a168d6927ec8c647b06b3f437c1503305141eb3.tar.gz
rpm-3a168d6927ec8c647b06b3f437c1503305141eb3.tar.bz2
rpm-3a168d6927ec8c647b06b3f437c1503305141eb3.zip
Remember to initialize crypto in various test programs..
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/thkp.c1
-rw-r--r--rpmio/tkey.c1
-rw-r--r--rpmio/tring.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/rpmio/thkp.c b/rpmio/thkp.c
index ea9d6891e..373e16c9b 100644
--- a/rpmio/thkp.c
+++ b/rpmio/thkp.c
@@ -49,6 +49,7 @@ static int readKeys(const char * uri)
int rc;
int ec = 0;
+ rpmInitCrypto();
dig = pgpNewDig();
for (kip = keyids; *kip; kip += 2) {
pgpArmor pa;
diff --git a/rpmio/tkey.c b/rpmio/tkey.c
index d142066b4..bc05cb09d 100644
--- a/rpmio/tkey.c
+++ b/rpmio/tkey.c
@@ -94,6 +94,7 @@ main (int argc, char *argv[])
int printing = 1;
int rc;
+ rpmInitCrypto();
dig = pgpNewDig();
fprintf(stderr, "=============================== GPG Secret Key\n");
diff --git a/rpmio/tring.c b/rpmio/tring.c
index 05649e324..d84928866 100644
--- a/rpmio/tring.c
+++ b/rpmio/tring.c
@@ -31,6 +31,8 @@ main (int argc, const char *argv[])
const char * fn;
int rc, ec = 0;
+ rpmInitCrypto();
+
while ((rc = poptGetNextOpt(optCon)) > 0);
if ((args = poptGetArgs(optCon)) != NULL)