38#define INITIAL_BUFFER_SIZE 200
55 ERR(
"ERROR: Not enough memory\n");
100 if (pipe2( pipe_in, O_CLOEXEC ) < 0 )
108 if (pipe2( pipe_out, O_CLOEXEC ) < 0 )
111 if( pipe(pipe_out) < 0 )
212 dup2(pipe_out[0], 0);
229 *new_helper = helper;
239 helper->
crypt.ntlm2.send_sign_key =
NULL;
240 helper->
crypt.ntlm2.send_seal_key =
NULL;
241 helper->
crypt.ntlm2.recv_sign_key =
NULL;
242 helper->
crypt.ntlm2.recv_seal_key =
NULL;
259 TRACE(
"Creating a new buffer for the helper\n");
276 TRACE(
"Resizing buffer!\n");
287 TRACE(
"read_size = %d, read: %s\n", read_size,
291 }
while(newline ==
NULL);
297 TRACE(
"offset_len is calculated from %p - %p\n",
314 TRACE(
"offset_len = %d\n", offset_len);
332 unsigned int max_buflen,
int *buflen)
351 if( *buflen > max_buflen)
353 ERR(
"Buffer size too small(%d given, %d required) dropping data!\n",
354 max_buflen, *buflen);
380 TRACE(
"Killing helper %p\n", helper);
414 TRACE(
"Checking version of helper\n");
429 ERR(
"Failed to get the helper version.\n");
437 helper->
micro = micro;
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
BOOL WINAPI SetHandleInformation(IN HANDLE hObject, IN DWORD dwMask, IN DWORD dwFlags)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA(LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
void CDECL _exit(int exitcode)
int CDECL _pipe(int *pfds, unsigned int psize, int textmode)
intptr_t CDECL _get_osfhandle(int fd)
static int dup2(int od, int nd)
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl sscanf(const char *, const char *,...) __WINE_CRT_SCANF_ATTR(2
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP int __cdecl strncmp(const char *, const char *, size_t)
char * flatten_cmdline(const char *prog, char *const argv[])
SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog, char *const argv[])
#define INITIAL_BUFFER_SIZE
void check_version(PNegoHelper helper)
static SECURITY_STATUS preserve_unused(PNegoHelper helper, int offset_len)
SECURITY_STATUS run_helper(PNegoHelper helper, char *buffer, unsigned int max_buflen, int *buflen)
void cleanup_helper(PNegoHelper helper)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
int WINAPI lstrlenA(LPCSTR lpString)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
struct _NegoHelper::@615 crypt
#define HANDLE_FLAG_INHERIT
#define STARTF_USESTDHANDLES
#define SEC_E_INTERNAL_ERROR
#define SEC_E_BUFFER_TOO_SMALL
#define SEC_E_ILLEGAL_MESSAGE
#define SEC_E_INVALID_TOKEN
#define SEC_E_INSUFFICIENT_MEMORY