Lines Matching defs:log_msg
85 struct sshbuf *log_msg;
93 if ((log_msg = sshbuf_new()) == NULL)
96 if ((r = sshbuf_put_u32(log_msg, 0)) != 0 || /* length; filled below */
97 (r = sshbuf_put_u32(log_msg, level)) != 0 ||
98 (r = sshbuf_put_u32(log_msg, forced)) != 0 ||
99 (r = sshbuf_put_cstring(log_msg, msg)) != 0)
101 if ((len = sshbuf_len(log_msg)) < 4 || len > 0xffffffff)
103 POKE_U32(sshbuf_mutable_ptr(log_msg), len - 4);
105 sshbuf_mutable_ptr(log_msg), len) != len)
107 sshbuf_free(log_msg);