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;
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strcpy(char *DstString, const char *SrcString)
#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)
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
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
int WINAPI lstrlenA(LPCSTR lpString)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
_Check_return_ _CRTIMP int __cdecl _pipe(_Inout_updates_(2) int *_PtHandles, _In_ unsigned int _PipeSize, _In_ int _TextMode)
_Check_return_ _CRTIMP int __cdecl dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
_CRTIMP intptr_t __cdecl execvp(_In_z_ const char *_Filename, _In_z_ char *const _ArgList[])
struct _NegoHelper::@548 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