summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-04-05 11:39:09 +0300
committerPanu Matilainen <pmatilai@redhat.com>2022-04-05 12:22:34 +0300
commit4af06be2a496939f293bfdae6b0ca558ac6d1a33 (patch)
tree257484f912d2e5722e20c8b3af5ab01167c73ac1 /include
parent65a8d0dde933303bfbc15a6bb941ffb4276759bf (diff)
downloadrpm-4af06be2a496939f293bfdae6b0ca558ac6d1a33.tar.gz
Mark deprecated PGP/keyring APIs as such
Add RPM_GNUC_DEPRECATED markers where we can, unfortunately these APIs are used to implement each others so adding more would cause unwanted warnings to build of rpm itself.
Diffstat (limited to 'include')
-rw-r--r--include/rpm/rpmkeyring.h6
-rw-r--r--include/rpm/rpmpgp.h8
2 files changed, 14 insertions, 0 deletions
diff --git a/include/rpm/rpmkeyring.h b/include/rpm/rpmkeyring.h
index 8d99afb36..ac1c0a6b3 100644
--- a/include/rpm/rpmkeyring.h
+++ b/include/rpm/rpmkeyring.h
@@ -36,10 +36,13 @@ int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key);
/** \ingroup rpmkeyring
* Perform keyring lookup for a key matching a signature
+ * @deprecated Obsolete, do not use.
+ *
* @param keyring keyring handle
* @param sig OpenPGP packet container of signature
* @return RPMRC_OK if found, RPMRC_NOKEY otherwise
*/
+RPM_GNUC_DEPRECATED
rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig);
/** \ingroup rpmkeyring
@@ -97,9 +100,12 @@ rpmPubkey rpmPubkeyLink(rpmPubkey key);
/** \ingroup rpmkeyring
* Parse OpenPGP pubkey parameters.
+ * @deprecated Obsolete, do not use.
+ *
* @param key Pubkey
* @return parsed output of pubkey packet parameters
*/
+RPM_GNUC_DEPRECATED
pgpDig rpmPubkeyDig(rpmPubkey key);
/** \ingroup rpmkeyring
diff --git a/include/rpm/rpmpgp.h b/include/rpm/rpmpgp.h
index 299706adc..7e0daf5ab 100644
--- a/include/rpm/rpmpgp.h
+++ b/include/rpm/rpmpgp.h
@@ -1027,6 +1027,8 @@ int pgpPrtParamsSubkeys(const uint8_t *pkts, size_t pktlen,
int *subkeysCount);
/** \ingroup rpmpgp
* Print/parse a OpenPGP packet(s).
+ * @deprecated Obsolete, do not use.
+ *
* @param pkts OpenPGP packet(s)
* @param pktlen OpenPGP packet(s) length (no. of bytes)
* @param[out] dig parsed output of signature/pubkey packet parameters
@@ -1078,18 +1080,24 @@ char * pgpArmorWrap(int atype, const unsigned char * s, size_t ns);
/** \ingroup rpmpgp
* Create a container for parsed OpenPGP packet(s).
+ * @deprecated Obsolete, do not use.
+ *
* @return container
*/
pgpDig pgpNewDig(void);
/** \ingroup rpmpgp
* Release (malloc'd) data from container.
+ * @deprecated Obsolete, do not use.
+ *
* @param dig container
*/
void pgpCleanDig(pgpDig dig);
/** \ingroup rpmpgp
* Destroy a container for parsed OpenPGP packet(s).
+ * @deprecated Obsolete, do not use.
+ *
* @param dig container
* @return NULL always
*/