From ecaeeb2c9b7d20a8708219ede00a0bb35498b13c Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sun, 27 May 2007 13:36:30 +0200 Subject: [PATCH] schannel: The PSDK defines no SECPKG_FUNCTION_TABLE_SIZE_* macro. --- dlls/schannel/tests/main.c | 7 +++++++ include/ntsecpkg.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/schannel/tests/main.c b/dlls/schannel/tests/main.c index d09a17c152..88cafc7975 100644 --- a/dlls/schannel/tests/main.c +++ b/dlls/schannel/tests/main.c @@ -32,6 +32,13 @@ #include "wine/test.h" +/* Helper macros to find the size of SECPKG_FUNCTION_TABLE */ +#define SECPKG_FUNCTION_TABLE_SIZE_1 offsetof(SECPKG_FUNCTION_TABLE, \ + SpSetContextAttributes) +#define SECPKG_FUNCTION_TABLE_SIZE_2 offsetof(SECPKG_FUNCTION_TABLE, \ + SetCredentialsAttributes) +#define SECPKG_FUNCTION_TABLE_SIZE_3 sizeof(SECPKG_FUNCTION_TABLE) + static NTSTATUS (NTAPI *pSpLsaModeInitialize)(ULONG, PULONG, PSECPKG_FUNCTION_TABLE*, PULONG); static NTSTATUS (NTAPI *pSpUserModeInitialize)(ULONG, PULONG, diff --git a/include/ntsecpkg.h b/include/ntsecpkg.h index 8cca97629c..b8ef222aa6 100644 --- a/include/ntsecpkg.h +++ b/include/ntsecpkg.h @@ -405,13 +405,6 @@ typedef struct SECPKG_FUNCTION_TABLE { } SECPKG_FUNCTION_TABLE, *PSECPKG_FUNCTION_TABLE; -/* Helper macros to find the size of SECPKG_FUNCTION_TABLE */ -#define SECPKG_FUNCTION_TABLE_SIZE_1 offsetof(SECPKG_FUNCTION_TABLE, \ - SpSetContextAttributes) -#define SECPKG_FUNCTION_TABLE_SIZE_2 offsetof(SECPKG_FUNCTION_TABLE, \ - SetCredentialsAttributes) -#define SECPKG_FUNCTION_TABLE_SIZE_3 sizeof(SECPKG_FUNCTION_TABLE) - /* dispatch tables of user-mode functions implemented by SSP/AP */ typedef struct SECPKG_USER_FUNCTION_TABLE { SpInstanceInitFn *InstanceInit;