Remember to initialize crypto in various test programs..
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 15 Nov 2007 12:03:19 +0000 (14:03 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 15 Nov 2007 12:03:19 +0000 (14:03 +0200)
rpmio/thkp.c
rpmio/tkey.c
rpmio/tring.c

index ea9d689..373e16c 100644 (file)
@@ -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;
index d142066..bc05cb0 100644 (file)
@@ -94,6 +94,7 @@ main (int argc, char *argv[])
     int printing = 1;
     int rc;
 
+    rpmInitCrypto();
     dig = pgpNewDig();
 
 fprintf(stderr, "=============================== GPG Secret Key\n");
index 05649e3..d849288 100644 (file)
@@ -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)