63 TRACE(
"(%p, %p)\n", pcPackages, ppPackageInfo);
96 *pkgInfo = package->
infoW;
100 pkgInfo->
Name = nextString;
102 nextString +=
lstrlenW(nextString) + 1;
111 nextString +=
lstrlenW(nextString) + 1;
136 size_t bytesNeeded = cPackages *
sizeof(
SecPkgInfoA);
139 for (
i = 0;
i < cPackages;
i++)
154 for (
i = 0;
i < cPackages;
i++)
162 pkgInfo->
Name = nextString;
170 nextString +=
lstrlenA(nextString) + 1;
184 nextString +=
lstrlenA(nextString) + 1;
209 if (*pcPackages && !*ppPackageInfo)
295 if (
info && (inInfoA || inInfoW))
344 if (fnTableA || fnTableW)
349 ret->loaded = !moduleName;
385 for (
i = 0;
i < toAdd;
i++)
387 SecurePackage *
package = HeapAlloc(GetProcessHeap(), 0, sizeof(SecurePackage));
static SecurePackageTable * packageTable
struct _SecureProviderTable SecureProviderTable
SECURITY_STATUS WINAPI schan_EnumerateSecurityPackagesW(PULONG pcPackages, PSecPkgInfoW *ppPackageInfo)
struct _SecPkgInfoW SecPkgInfoW
SECURITY_STATUS WINAPI schan_EnumerateSecurityPackagesA(PULONG pcPackages, PSecPkgInfoA *ppPackageInfo)
#define WideCharToMultiByte
static const SecPkgInfoA infoA
static PSecPkgInfoA thunk_PSecPkgInfoWToA(ULONG cPackages, const SecPkgInfoW *info)
SECURITY_STATUS WINAPI schan_FreeContextBuffer(PVOID pvoid)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
static void _makeFnTableA(PSecurityFunctionTableA fnTableA, const SecurityFunctionTableA *inFnTableA, const SecurityFunctionTableW *inFnTableW)
PSTR SECUR32_AllocMultiByteFromWide(PCWSTR str)
__WINE_SERVER_LIST_INLINE void list_add_tail(struct list *list, struct list *elem)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
static unsigned char bytes[4]
#define SEC_E_INSUFFICIENT_MEMORY
static struct _test_info info[]
void SECUR32_addPackages(SecureProvider *provider, ULONG toAdd, const SecPkgInfoA *infoA, const SecPkgInfoW *infoW)
static CRITICAL_SECTION_DEBUG cs_debug
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static const SecPkgInfoW infoW
PWSTR SECUR32_AllocWideFromMultiByte(PCSTR str)
#define memcpy(s1, s2, n)
static SecureProviderTable * providerTable
LIST_ENTRY ProcessLocksList
static PWSTR SECUR32_strdupW(PCWSTR str)
struct _SecurePackageTable SecurePackageTable
SecureProvider * SECUR32_addProvider(const SecurityFunctionTableA *fnTableA, const SecurityFunctionTableW *fnTableW, PCWSTR moduleName)
SecureProvider * provider
struct _SecPkgInfoA SecPkgInfoA
int WINAPI lstrlenA(LPCSTR lpString)
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
#define MultiByteToWideChar
static void _makeFnTableW(PSecurityFunctionTableW fnTableW, const SecurityFunctionTableA *inFnTableA, const SecurityFunctionTableW *inFnTableW)
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
static void _copyPackageInfo(PSecPkgInfoW info, const SecPkgInfoA *inInfoA, const SecPkgInfoW *inInfoW)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define HeapFree(x, y, z)
static CRITICAL_SECTION cs
WINE_DEFAULT_DEBUG_CHANNEL(schannel)