search for: load_buffer

Displaying 1 result from an estimated 1 matches for "load_buffer".

2004 Jan 01
1
[PATCH] Add winbind-backed NTLMSSP support to Cyrus-SASL
...const argv[], + const sasl_utils_t *utils) -/* copy unicode src (in Intel byte-order) to dst */ -static void from_unicode(char *dst, u_char *src, int len) { - for (; len; len--) { - *dst++ = *src & 0x7f; - src += 2; - } -} - -/* load a string into an NTLM buffer */ -static void load_buffer(ntlm_buffer_t *buf, const u_char *str, uint16 len, - int unicode, u_char *base, uint32 *offset) -{ - if (len) { - if (unicode) { - to_unicode(base + *offset, str, len); - len *= 2; - } - else { - memcpy(base + *offset, str, len); + int pipe_in[2]; + int pipe_out[2]; + + if ( (pipe(...