CVE-2022-2031 tests/krb5: Add methods to send and receive generic messages