And finally, make pgpDig struct fully opaque
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Nov 2011 10:56:55 +0000 (12:56 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Nov 2011 10:56:55 +0000 (12:56 +0200)
- As long as this was exposed and relied on, we couldn't really
  make any changes to how this stuff is stored. Now we have a chance...

rpmio/digest.h
rpmio/rpmpgp.c

index abd96d4..9a13902 100644 (file)
@@ -45,14 +45,6 @@ struct pgpDigParams_s {
     pgpDigAlg alg;
 };
 
-/** \ingroup rpmio
- * Container for values parsed from an OpenPGP signature and public key.
- */
-struct pgpDig_s {
-    struct pgpDigParams_s signature;
-    struct pgpDigParams_s pubkey;
-};
-
 pgpDigAlg pgpPubkeyNew(int algo);
 
 pgpDigAlg pgpSignatureNew(int algo);
index b14640e..045740e 100644 (file)
 
 static int _print = 0;
 
+/** \ingroup rpmio
+ * Container for values parsed from an OpenPGP signature and public key.
+ */
+struct pgpDig_s {
+    struct pgpDigParams_s signature;
+    struct pgpDigParams_s pubkey;
+};
+
 typedef const struct pgpValTbl_s {
     int val;
     char const * const str;