From 41a3fda32b9092bbf5562b1716463480b99b78d0 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 7 Nov 2011 12:56:55 +0200 Subject: [PATCH] And finally, make pgpDig struct fully opaque - 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 | 8 -------- rpmio/rpmpgp.c | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rpmio/digest.h b/rpmio/digest.h index abd96d4..9a13902 100644 --- a/rpmio/digest.h +++ b/rpmio/digest.h @@ -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); diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index b14640e..045740e 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -17,6 +17,14 @@ 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; -- 2.7.4