for (p = buf; p; p = pend) {
if ((pend = strchr (p, ':')))
*pend++ = 0;
for (p = buf; p; p = pend) {
if ((pend = strchr (p, ':')))
*pend++ = 0;
if (!m_strcmp(p, "pub"));
else if (!m_strcmp(p, "sub"))
*is_subkey = 1;
if (!m_strcmp(p, "pub"));
else if (!m_strcmp(p, "sub"))
*is_subkey = 1;
if (!(*is_subkey && option (OPTPGPIGNORESUB)))
k->keylen = atoi (p); /* fixme: add validation checks */
break;
}
case 4: /* pubkey algo */
{
if (!(*is_subkey && option (OPTPGPIGNORESUB)))
k->keylen = atoi (p); /* fixme: add validation checks */
break;
}
case 4: /* pubkey algo */
{
if (!(*is_subkey && option (OPTPGPIGNORESUB)))
m_strreplace(&k->keyid, p);
break;
if (!(*is_subkey && option (OPTPGPIGNORESUB)))
m_strreplace(&k->keyid, p);
break;