summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-04-07 14:46:06 +0300
committerPanu Matilainen <pmatilai@redhat.com>2022-04-08 12:00:11 +0300
commit87c4eee816a4ddd4291cf1211c0290f3a731be73 (patch)
tree8c50fc4664958dcb31ce200a78c9f9d71ccf34bb /include
parentae7ef1a43328dce9ddc09a509fa4627ef70cd634 (diff)
downloadrpm-87c4eee816a4ddd4291cf1211c0290f3a731be73.tar.gz
Axe pgpDig and related APIs
These haven't been used by rpm in years but have been left to linger, perhaps for too long. Bye now.
Diffstat (limited to 'include')
-rw-r--r--include/rpm/rpmpgp.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/include/rpm/rpmpgp.h b/include/rpm/rpmpgp.h
index 7e0daf5ab..89c5e35cf 100644
--- a/include/rpm/rpmpgp.h
+++ b/include/rpm/rpmpgp.h
@@ -27,10 +27,6 @@ extern "C" {
/** \ingroup rpmpgp
*/
-typedef struct pgpDig_s * pgpDig;
-
-/** \ingroup rpmpgp
- */
typedef struct pgpDigParams_s * pgpDigParams;
@@ -1025,17 +1021,6 @@ int pgpPrtParams(const uint8_t *pkts, size_t pktlen, unsigned int pkttype,
int pgpPrtParamsSubkeys(const uint8_t *pkts, size_t pktlen,
pgpDigParams mainkey, pgpDigParams **subkeys,
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
- * @param printing should packets be printed?
- * @return -1 on error, 0 on success
- */
-int pgpPrtPkts(const uint8_t *pkts, size_t pktlen, pgpDig dig, int printing);
/** \ingroup rpmpgp
* Parse armored OpenPGP packets from a file.
@@ -1079,39 +1064,6 @@ int pgpPubKeyCertLen(const uint8_t *pkts, size_t pktslen, size_t *certlen);
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
- */
-pgpDig pgpFreeDig(pgpDig dig);
-
-/** \ingroup rpmpgp
- * Retrieve parameters for parsed OpenPGP packet(s).
- * @param dig container
- * @param pkttype type of params to retrieve (signature / pubkey)
- * @return pointer to OpenPGP parameters, NULL on error/not found
- */
-pgpDigParams pgpDigGetParams(pgpDig dig, unsigned int pkttype);
-
-/** \ingroup rpmpgp
* Compare OpenPGP packet parameters
* param p1 1st parameter container
* param p2 2nd parameter container
@@ -1209,16 +1161,6 @@ pgpDigParams pgpDigParamsFree(pgpDigParams digp);
rpmRC pgpVerifySignature(pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx);
/** \ingroup rpmpgp
- * Verify a PGP signature.
- * @deprecated use pgpVerifySignature() instead
- *
- * @param dig container
- * @param hashctx digest context
- * @return RPMRC_OK on success
- */
-rpmRC pgpVerifySig(pgpDig dig, DIGEST_CTX hashctx);
-
-/** \ingroup rpmpgp
* Return the type of a PGP signature. If `sig` is NULL, or is not a signature,
* returns -1.
*