Lines Matching defs:handshake
285 struct log_service_handshake handshake;
291 full handshake packet immediately. if not, treat it as an error
299 if ((size_t)ret < sizeof(handshake)) {
300 /* this isn't a handshake */
305 i_assert(size >= sizeof(handshake));
306 memcpy(&handshake, data, sizeof(handshake));
308 if (handshake.log_magic != MASTER_LOG_MAGIC) {
309 /* this isn't a handshake */
313 if (handshake.prefix_len > size - sizeof(handshake)) {
314 i_error("Missing prefix data in handshake");
318 log->default_prefix = i_strndup(data + sizeof(handshake),
319 handshake.prefix_len);
320 i_stream_skip(log->input, sizeof(handshake) + handshake.prefix_len);
324 i_error("Received master prefix in handshake "
348 handshake. the first few lines could be coming from e.g.
349 libc before the proper handshake line is sent. */