summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-15 02:21:31 +1100
committerDamien Miller <djm@mindrot.org>2015-01-15 02:28:36 +1100
commit72ef7c148c42db7d5632a29f137f8b87b579f2d9 (patch)
tree47954a387f4260cc8b1e0ff33bbbaf22fd6f11fc /monitor_wrap.c
parent4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9 (diff)
support --without-openssl at configure time
Disables and removes dependency on OpenSSL. Many features don't work and the set of crypto options is greatly restricted. This will only work on system with native arc4random or /dev/urandom. Considered highly experimental for now.
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index f4e11c966..b0dbb3f70 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -151,8 +151,10 @@ mm_request_receive(int sock, Buffer *m)
151 debug3("%s entering", __func__); 151 debug3("%s entering", __func__);
152 152
153 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) { 153 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
154 if (errno == EPIPE) 154 if (errno == EPIPE) {
155 error("%s: socket closed", __func__);
155 cleanup_exit(255); 156 cleanup_exit(255);
157 }
156 fatal("%s: read: %s", __func__, strerror(errno)); 158 fatal("%s: read: %s", __func__, strerror(errno));
157 } 159 }
158 msg_len = get_u32(buf); 160 msg_len = get_u32(buf);