-/* $OpenBSD: ca.c,v 1.33 2018/01/24 13:51:36 claudio Exp $ */
+/* $OpenBSD: ca.c,v 1.34 2018/09/19 11:28:02 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
case -1:
fatal("%s: poll", __func__);
case 0:
- log_warnx("%s: poll timeout", __func__);
- return -1;
+ log_warnx("%s: priv%s poll timeout", __func__,
+ cmd == IMSG_CA_PRIVENC ? "enc" : "dec");
+ return (-1);
default:
break;
}
-/* $OpenBSD: relay.c,v 1.240 2018/08/06 17:31:31 benno Exp $ */
+/* $OpenBSD: relay.c,v 1.241 2018/09/19 11:28:02 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
int
relay_dispatch_ca(int fd, struct privsep_proc *p, struct imsg *imsg)
{
+ switch (imsg->hdr.type) {
+ case IMSG_CA_PRIVENC:
+ case IMSG_CA_PRIVDEC:
+ log_warnx("%s: priv%s result after timeout", __func__,
+ imsg->hdr.type == IMSG_CA_PRIVENC ? "enc" : "dec");
+ return (0);
+ }
+
return (-1);
}