Displaying 1 result from an estimated 1 matches for "sasl_fail".
2004 Jan 01
1
[PATCH] Add winbind-backed NTLMSSP support to Cyrus-SASL
...memcpy(base + *offset, str, len);
+ int pipe_in[2];
+ int pipe_out[2];
+
+ if ( (pipe(pipe_in) < 0) || (pipe(pipe_out) < 0) ) {
+ syslog(LOG_DEBUG, "fork_child: could not open pipes\n");
+ utils->seterror(utils->conn, 0, "Could not allocate pipe\n");
+ return SASL_FAIL;
}
- }
-
- UINT16_TO_INTEL(len, buf->len);
- buf->maxlen = buf->len;
- UINT32_TO_INTEL(*offset, buf->offset);
- *offset += len;
-}
-
-/* unload a string from an NTLM buffer */
-static int unload_buffer(const sasl_utils_t *utils, ntlm_buffer_t *buf,
- u_char **str, un...