Set up tests for secur32.
This commit is contained in:
parent
6672d2680c
commit
84fb7913f9
@ -1698,6 +1698,7 @@ dlls/rsabase/tests/Makefile
|
|||||||
dlls/rsaenh/Makefile
|
dlls/rsaenh/Makefile
|
||||||
dlls/rsaenh/tests/Makefile
|
dlls/rsaenh/tests/Makefile
|
||||||
dlls/secur32/Makefile
|
dlls/secur32/Makefile
|
||||||
|
dlls/secur32/tests/Makefile
|
||||||
dlls/sensapi/Makefile
|
dlls/sensapi/Makefile
|
||||||
dlls/serialui/Makefile
|
dlls/serialui/Makefile
|
||||||
dlls/setupapi/Makefile
|
dlls/setupapi/Makefile
|
||||||
|
@ -12,6 +12,8 @@ C_SRCS = \
|
|||||||
thunks.c \
|
thunks.c \
|
||||||
wrapper.c
|
wrapper.c
|
||||||
|
|
||||||
|
SUBDIRS = tests
|
||||||
|
|
||||||
@MAKE_DLL_RULES@
|
@MAKE_DLL_RULES@
|
||||||
|
|
||||||
### Dependencies:
|
### Dependencies:
|
||||||
|
3
dlls/secur32/tests/.cvsignore
Normal file
3
dlls/secur32/tests/.cvsignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Makefile
|
||||||
|
main.ok
|
||||||
|
testlist.c
|
13
dlls/secur32/tests/Makefile.in
Normal file
13
dlls/secur32/tests/Makefile.in
Normal 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
55
dlls/secur32/tests/main.c
Normal 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();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user