diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-16 23:05:21 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-16 23:05:21 +0200 |
commit | acdbac335e7a8e287afa68a1127501029a5a3bec (patch) | |
tree | 52ae701009009c7b5ea11bfea4f9f2422f53ddb4 /rpmio/rpmpgp.h | |
parent | 7be0a763d282475763c11d7b05d1479d7f0a617e (diff) | |
download | rpm-acdbac335e7a8e287afa68a1127501029a5a3bec.tar.gz rpm-acdbac335e7a8e287afa68a1127501029a5a3bec.tar.bz2 rpm-acdbac335e7a8e287afa68a1127501029a5a3bec.zip |
pgpReadPkts returns malloced memory, unconstify
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r-- | rpmio/rpmpgp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h index 7730b6d56..091963a5e 100644 --- a/rpmio/rpmpgp.h +++ b/rpmio/rpmpgp.h @@ -1209,12 +1209,11 @@ int pgpPrtPkts(const uint8_t *pkts, size_t pktlen, pgpDig dig, int printing); /** \ingroup rpmpgp * Parse armored OpenPGP packets from a file. * @param fn file name - * @retval pkt dearmored OpenPGP packet(s) + * @retval pkt dearmored OpenPGP packet(s) (malloced) * @retval pktlen dearmored OpenPGP packet(s) length in bytes * @return type of armor found */ -pgpArmor pgpReadPkts(const char * fn, - const uint8_t ** pkt, size_t * pktlen); +pgpArmor pgpReadPkts(const char * fn, uint8_t ** pkt, size_t * pktlen); /** \ingroup rpmpgp * Wrap a OpenPGP packets in ascii armor for transport. |