Set up tests for secur32.

This commit is contained in:
Kai Blin 2005-08-03 13:08:49 +00:00 committed by Alexandre Julliard
parent 6672d2680c
commit 84fb7913f9
6 changed files with 76 additions and 1 deletions

3
configure vendored

File diff suppressed because one or more lines are too long

View File

@ -1698,6 +1698,7 @@ dlls/rsabase/tests/Makefile
dlls/rsaenh/Makefile
dlls/rsaenh/tests/Makefile
dlls/secur32/Makefile
dlls/secur32/tests/Makefile
dlls/sensapi/Makefile
dlls/serialui/Makefile
dlls/setupapi/Makefile

View File

@ -12,6 +12,8 @@ C_SRCS = \
thunks.c \
wrapper.c
SUBDIRS = tests
@MAKE_DLL_RULES@
### Dependencies:

View File

@ -0,0 +1,3 @@
Makefile
main.ok
testlist.c

View File

@ -0,0 +1,13 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../../..
SRCDIR = @srcdir@
VPATH = @srcdir@
TESTDLL = secur32.dll
IMPORTS = secur32
CTESTS = \
main.c
@MAKE_TEST_RULES@
### Dependencies:

55
dlls/secur32/tests/main.c Normal file
View File

@ -0,0 +1,55 @@
/*
* Miscellaneous secur32 tests
*
* Copyright 2005 Kai Blin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdio.h>
#include <stdarg.h>
#include <windows.h>
#include <winsock2.h>
#include <mswsock.h>
#include "wine/test.h"
#include <winbase.h>
#include <sspi.h>
#define BUFF_SIZE 2048
static void testQuerySecurityPackageInfo(void)
{
SECURITY_STATUS sec_status = 0;
SEC_CHAR *sec_pkg_name = NULL;
PSecPkgInfo pkg_info;
DWORD max_token;
lstrcpy(sec_pkg_name, "Negotiate");
sec_status = QuerySecurityPackageInfo( sec_pkg_name, &pkg_info);
ok(sec_status != SEC_E_OK,
"Return value of QuerySecurityPackageInfo() should be %d, but is %d\n",
(int)SEC_E_OK, (int)sec_status );
max_token = pkg_info->cbMaxToken;
printf("Max token = %ld\n", max_token);
}
START_TEST(main)
{
testQuerySecurityPackageInfo();
}