Rather than ensuring signatures/keys are no more than v5 allow them to
be anything from v2 onwards; otherwise things like armor/dearmor won't
work properly.
case OPENPGP_PACKET_SIGNATURE:
case OPENPGP_PACKET_SECRETKEY:
case OPENPGP_PACKET_PUBLICKEY:
- /* Must be v2 -> v5 */
- if (curpacket->packet->data[0] < 2 ||
- curpacket->packet->data[0] > 5) {
+ /* Must be v2 onwards */
+ if (curpacket->packet->data[0] < 2) {
rc = ONAK_E_INVALID_PKT;
}
break;