Skip to content

Commit

Permalink
Document pgpPrtParamsSubkeys() returning only signing-capable keys
Browse files Browse the repository at this point in the history
Since commit a9cca03 we've only
returned signing capable subkeys, but this has seemed like an
implementation detail. Make it explicit.

Fixes: #2515
  • Loading branch information
pmatilai committed Nov 15, 2023
1 parent 6714ec7 commit 01fb42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rpm/rpmpgp.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ int pgpPrtParams2(const uint8_t *pkts, size_t pktlen, unsigned int pkttype,
pgpDigParams * ret, char **lints);

/** \ingroup rpmpgp
* Parse subkey parameters from OpenPGP packet(s).
* Parse signing capable subkeys from OpenPGP packet(s).
* @param pkts OpenPGP packet(s)
* @param pktlen OpenPGP packet(s) length (no. of bytes)
* @param mainkey parameters of main key
* @param subkeys array of subkey parameters (alloced)
* @param subkeys array of signing capable subkey parameters (alloced)
* @param subkeysCount count of subkeys
* @return -1 on error, 0 on success
*/
Expand Down

0 comments on commit 01fb42d

Please sign in to comment.