return key;
}
-static SECKEYPublicKey *pgpNewRSAKey(void)
-{
- return pgpNewPublicKey(rsaKey);
-}
-
-static SECKEYPublicKey *pgpNewDSAKey(void)
-{
- return pgpNewPublicKey(dsaKey);
-}
-
/** \ingroup rpmpgp
* Is buffer at beginning of an OpenPGP packet?
* @param p buffer
if (i >= 2) break;
if (_dig) {
if (_dig->keydata == NULL) {
- _dig->keydata = pgpNewRSAKey();
+ _dig->keydata = pgpNewPublicKey(rsaKey);
if (_dig->keydata == NULL)
break; /* error abort? */
}
if (i >= 4) break;
if (_dig) {
if (_dig->keydata == NULL) {
- _dig->keydata = pgpNewDSAKey();
+ _dig->keydata = pgpNewPublicKey(dsaKey);
if (_dig->keydata == NULL)
break; /* error abort? */
}