&message)) {
com_err(PROGNAME, retval, "while verifying SAFE message");
(void) krb5_rc_close(rcache);
- krb5_xfree(rcache);
exit(1);
}
printf("Safe message is: '%.*s'\n", message.length, message.data);
if (i < 0) {
perror("receiving datagram");
(void) krb5_rc_close(rcache);
- krb5_xfree(rcache);
exit(1);
}
printf("Received %d bytes\n", i);
&portforeign_addr)) {
com_err(PROGNAME, retval, "while generating port address");
(void) krb5_rc_close(rcache);
- krb5_xfree(rcache);
exit(1);
}
&message)) {
com_err(PROGNAME, retval, "while verifying PRIV message");
(void) krb5_rc_close(rcache);
- krb5_xfree(rcache);
exit(1);
}
printf("Decrypted message is: '%.*s'\n", message.length, message.data);
(void) krb5_rc_close(rcache);
- krb5_xfree(rcache);
exit(0);
}