Paul Chitescu
b1cbecbbc6
advapi32: Add stub FileEncryptionStatus and declarations.
2006-05-20 16:56:16 +02:00
Mike McCormack
9b3d8a3527
advapi32: Implement and test SystemFunction005.
2006-05-16 12:36:28 +02:00
Francois Gouget
17689c07bb
Fix some winapi_check documentation warnings.
2006-05-15 15:05:15 +02:00
Robert Shearman
a33a63712f
advapi32: Add tests for getting the groups, user and privileges of a token.
2006-05-15 14:05:49 +02:00
Mike McCormack
dcfb0f44d1
advapi32: Implement and test SystemFunction004.
2006-05-15 14:05:22 +02:00
Mike McCormack
09fc7e046a
advapi32: Implement and test SystemFunction003.
2006-05-15 14:03:56 +02:00
Mike McCormack
50ed147db0
advapi32: Implement and test SystemFunction002 (DES decrypt).
2006-05-15 14:03:33 +02:00
Mike McCormack
ff6885495b
advapi32: Fix a typo (spotted by Peter Berg Larsen).
2006-05-11 12:10:12 +02:00
Mike McCormack
9e37591d20
advapi32: Implement and test SystemFunction032 (arc4 encryption).
2006-05-10 19:36:54 +02:00
Mike McCormack
72822c0fea
advapi32: Implement and test SystemFunction007.
2006-05-10 19:27:39 +02:00
Mike McCormack
6969cab5ee
advapi32: Implement and test SystemFunction001.
2006-05-10 19:27:19 +02:00
Mike McCormack
4f520dbd06
advapi32: Implement and test SystemFunction008.
2006-05-10 19:26:54 +02:00
Michael Stefaniuc
a87520036f
janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
...
Some HeapFree's are hidden behind macros. Found by smatch.
2006-05-10 11:31:41 +02:00
Robert Reif
1ed98cc7eb
advapi32: Add some lsa tests.
2006-05-05 17:38:53 +02:00
Robert Reif
b871ac4ff1
advapi32: Fix LsaClose return value.
2006-05-05 17:31:10 +02:00
Robert Shearman
35596ee290
advapi32: Implement the majority of ImpersonateLoggedOnUser.
2006-05-05 16:35:55 +02:00
Robert Reif
d2a59d86d9
advapi32: Fix LsaQueryInformationPolicy return values.
2006-04-21 11:28:18 +02:00
Alexandre Julliard
e97a1afbab
advapi32: Fixed compiler warnings.
2006-03-28 14:43:18 +02:00
Thomas Weidenmueller
ae8b835d85
advapi32: Fixed building TRUSTEEs with objects.
...
Fill the TRUSTEE structure properly in BuildTrusteeWithObjectsAndName
and BuildTrusteeWithObjectsAndSid, including regression tests.
2006-03-28 12:34:43 +02:00
Francois Gouget
cf49dc36c7
advapi32: Fix the LsaEnumerateAccountRights() export.
2006-03-21 20:02:35 +01:00
Hans Leidekker
93676b10c6
advapi32: Add stub implementations for a bunch of documented Lsa APIs.
2006-03-13 14:18:29 +01:00
Ulrich Czekalla
7aa3be4741
advapi32: Add partial implementation of LookupAccountNameW.
2006-02-22 11:32:41 +01:00
Michael Jung
ac615ce5a0
advapi32: Implemented RegLoadMUIString[AW].
2006-02-14 10:41:18 +01:00
Aric Stewart
910806393d
advapi32: Fix for RegNotifyChangeKeyValue.
...
Flip fAsync and fWatchSubTree into their proper places.
2006-02-09 12:08:47 +01:00
Ulrich Czekalla
5ceb274724
advapi32: Add stub for ObjectDeleteAuditAlarmW.
2006-02-02 13:19:11 +01:00
Mike McCormack
a8b71c2727
advapi32: If we can't connect to a service's pipe, name the service in
...
the error message.
2006-01-10 12:10:34 +01:00
Vitaliy Margolen
e74bda9d95
advapi32: Don't allocate memory for empty argument string and pass
...
NULL instead.
2006-01-03 12:05:32 +01:00
Rein Klazes
62b69d6486
advapi32: RegCreateKeyEx fix.
...
On Win9x,ME RegCreateKeyEx ignores the backslash character if the
subkey begins with one. With a regression test.
2005-12-08 13:49:02 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Alexandre Julliard
0ec7e1a591
Renamed all .cvsignore files to .gitignore.
2005-11-26 13:10:33 +01:00
Paul Vriens
e6b0dc2a2f
Return a real error in LsaLookupSids.
2005-11-24 19:22:30 +01:00
Vincent Béron
f41abbd07a
Add/correct prototypes for some already defined functions in
...
advapi32. Correct spec file entry for GetSecurityInfoExW.
2005-11-21 12:06:00 +00:00
Rob Shearman
01a4245a51
Don't try waiting for the service process to start if the
...
CreateProcess call failed.
2005-11-21 12:00:16 +00:00
Markus Amsler
ec350525e3
Improve c2man Documented-Total count. Changes:
...
- add missing description
- add missing returns section
2005-11-12 19:12:03 +00:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Saulius Krasuckas
5cd099290c
Win98 fails another way when user isn't logged in.
2005-11-08 19:57:41 +00:00
Markus Amsler
d45811ce2a
Improve c2man Documented-Total count.
2005-11-04 11:43:27 +00:00
Saulius Krasuckas
9d519093f6
- RegConnectRegistryA fails on Win9x when Remote Registry Service is
...
not installed (WinReg.DLL is missing).
- Test "\\" prefixed computer names too.
2005-11-04 11:15:59 +00:00
Mike McCormack
febe90b263
Implement advapi32.CommandLineFromMsiDescriptor. It's a wrapper for
...
msi.MsiProvideComponentFromDescriptor.
2005-11-04 11:15:18 +00:00
Hans Leidekker
d7161472fc
Added stub for RegisterServiceCtrlHandlerEx{A,W}.
2005-11-03 09:53:27 +00:00
Ivan Leo Puoti
7230a90821
Delete a temp file.
2005-10-27 18:29:07 +00:00
Alexandre Julliard
7e22be4d84
We are no longer generating .dbg.c files.
2005-09-29 10:35:58 +00:00
Vincent Béron
bd6f176df9
Remove some Unicode->ANSI cross-calls in crypt functions.
2005-09-28 11:59:04 +00:00
Robert Shearman
c218e74184
Fix String SID parsing.
2005-09-16 18:44:17 +00:00
Rein Klazes
c16e70587a
- Set the LastError in OpenSCManager in case of errors;
...
- Accept machine names without a '\\' prefix in OpenSCManager and
RegConnectRegistry.
- Add a regression test for that.
2005-09-15 09:31:05 +00:00
Alexandre Julliard
261e376495
Fixed a number of pointer to integer conversions that wouldn't work
...
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Alexandre Julliard
20a1a203c6
Use a more portable scheme for storing the name of a critical
...
section.
2005-09-09 10:19:44 +00:00
Mike McCormack
280bcf6e4a
Fix gcc 4.0 warnings.
2005-08-27 10:00:38 +00:00
Kevin Koltzau
bfa3077510
Properly declare handles.
2005-08-23 09:32:39 +00:00
Kevin Koltzau
73159c1d0c
Remove 'cast from pointer to integer of different size' warnings in
...
64bit,
2005-08-22 09:18:48 +00:00
Vincent Béron
e9cac26182
Change some TRACEing formats to make more sense.
2005-08-15 09:44:34 +00:00
Alexandre Julliard
49b7fdcfc0
Removed the broken mmap64 configure check, and moved the
...
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
need the define include it.
2005-08-03 21:25:10 +00:00
Alexandre Julliard
7be607f7c0
Added commented out stubs for a bunch of new functions.
2005-08-01 14:59:26 +00:00
Steven Edwards
e14569d122
Correct RegCreateKeyEx[A/W] prototype to match the PSDK.
2005-07-28 10:18:23 +00:00
Felix Nawothnig
48533ae97d
Implement RegGetValueA/W.
2005-07-18 15:10:22 +00:00
Felix Nawothnig
7bc3a38ba7
Rewrote the RegGetValue tests for REG_SZ / REG_EXPAND_SZ.
2005-07-18 10:30:51 +00:00
Felix Nawothnig
305ce2f641
Fix registry tests on Win95.
2005-07-18 09:08:24 +00:00
Juan Lang
8c9b330cce
Add/correct a couple definitions, allow hashing nothing.
2005-07-18 09:07:57 +00:00
Francois Gouget
28dc5a8afc
Assorted spelling fixes.
2005-07-11 10:59:41 +00:00
Mike McCormack
257c337c19
gcc 4.0 -Wpointer-sign fixes (Reg* functions).
2005-07-07 12:08:42 +00:00
Mike McCormack
d7b9a23afd
gcc 4.0 -Wpointer-sign fixes (Reg* functions).
2005-07-06 19:08:05 +00:00
James Hawkins
fb46998825
Branch the LSA functions from security.c to lsa.c.
2005-07-06 10:37:50 +00:00
Stefan Huehner
17ed5537e7
Fix some more -Wmissing-declarations warnings.
2005-07-05 11:05:50 +00:00
Felix Nawothnig
694f789956
Added unit tests for RegGetValue.
2005-07-03 11:19:03 +00:00
James Hawkins
9f96664dc4
- Fix calculation of generic pointers.
...
- Minor cleanups.
2005-06-29 20:14:16 +00:00
Alexandre Julliard
ccd5cdad18
Mark as todo a couple of tests that currently fail.
2005-06-28 13:52:01 +00:00
Robert Shearman
1731df4ca0
Test ACCESS_SYSTEM_SECURITY AccessCheck behaviour.
2005-06-27 19:48:35 +00:00
James Hawkins
0ea0f5fffd
- Define FSCTL_PIPE_IMPERSONATE.
...
- Implement ImpersonateNamedPipeClient.
2005-06-24 11:54:15 +00:00
James Hawkins
fc6b6f4848
Add stub implementations for BuildSecurityDescriptorA/W.
2005-06-23 11:40:57 +00:00
James Hawkins
dd3fd54a65
Forward AddAuditAccessAce to its Rtl counterpart.
2005-06-23 11:03:52 +00:00
Alexandre Julliard
aa0b9aac0d
Sort entry points alphabetically.
2005-06-22 18:38:23 +00:00
Felix Nawothnig
68ee20e36d
Skip ACL tests on Win9x.
2005-06-22 12:00:01 +00:00
James Hawkins
bfaac2776a
Implement IsTokenRestricted.
2005-06-21 20:49:54 +00:00
James Hawkins
bafa13c6a6
Implement GetTrustee* functions.
2005-06-21 20:20:47 +00:00
Stefan Huehner
ac6f562b52
Fix more -Wstrict-prototypes warnings.
2005-06-20 14:18:03 +00:00
Robert Shearman
9cb94b276f
Implement RtlImpersonateSelf, RevertToSelf and MapGenericMask.
2005-06-20 11:44:45 +00:00
Francois Gouget
f9280a3a95
Protect the unistd.h and sys/stat.h includes.
...
Include config.h.
Fixes warnings reported by winapi_check.
2005-06-17 20:56:02 +00:00
Mike McCormack
5b2d5fd758
Use HANDLE instead of HKEY in the NT API.
2005-06-17 13:58:33 +00:00
James Hawkins
5909b0de35
Forward GetPrivate/KernelObjectSecurity to NtQuerySecurityObject.
2005-06-17 09:52:06 +00:00
Robert Shearman
8cb3f92e53
- All versions of Windows ignore the access rights of the passed in
...
parent handle to RegCreateKey(Ex).
- Add a test that shows this.
2005-06-16 20:34:34 +00:00
Robert Shearman
9495180325
MSDN states that DuplicateToken should create a new token with the
...
TOKEN_QUERY | TOKEN_IMPERSONATE rights, not 0.
2005-06-15 10:20:17 +00:00
Mike McCormack
74b37280b3
Silence some -Wmissing-declarations warnings.
2005-06-13 10:00:37 +00:00
Robert Shearman
44246e47ec
Fix registry test for Win9x by skipping a section that fails, but
...
succeeds on NT.
2005-06-12 10:42:13 +00:00
Robert Shearman
472852bef3
Added test for AccessCheck.
2005-06-09 10:03:11 +00:00
Mike McCormack
6b44c2a56c
Fix some warnings.
2005-06-09 09:48:36 +00:00
Mike McCormack
a46a159be9
Make ADVAPI_IsLocalComputer static and simplify it a little.
2005-06-09 09:44:44 +00:00
Mike McCormack
4fd603607f
Include appmgmt.h where its functions are used.
2005-06-09 09:44:26 +00:00
Alexandre Julliard
16885f09a5
Fixed RtlIsTextUnicode prototype, and made it properly take into
...
account the results of the tests to determine the return value.
2005-05-31 13:24:44 +00:00
Uwe Bonnes
7f99aa834f
Implemented SystemFunction036.
2005-05-23 12:08:00 +00:00
Robert Shearman
efbea2e2bc
Implement RegNotifyChangeKeyValue on top of NtNotifyChangeKey.
2005-05-16 14:08:11 +00:00
Vincent Béron
4440a7278f
Provide minimal API documentation in advapi/eventlog.c to silence some
...
winapi_check output.
Move around functions in riched20, richedit and rpcrt4 to achieve the
same goal.
2005-05-16 08:51:19 +00:00
Aric Stewart
ea6ecf44ff
Add a stub implementation of RegisterTraceGuids.
2005-05-11 13:00:18 +00:00
Alexandre Julliard
34fa35dc99
Added rules for building import libraries in the individual dll
...
makefiles, and added support for building a .def.a static import
library too.
2005-05-09 14:42:30 +00:00
Alexandre Julliard
d62356aa1e
Added rules to build import libraries in the individual dll makefiles.
...
Generate import libraries with the right name right away instead of
using an intermediate .spec.def file.
2005-05-07 12:39:52 +00:00
Robert Shearman
45d47c422f
Fix RegDeleteKey{A,W} to open the specified key with the DELETE access
...
right.
2005-05-05 16:47:33 +00:00
Stefan Leichter
21be2f734e
Excluded tests crashing on NT4 from compiling.
2005-04-23 19:05:03 +00:00
Robert Shearman
1408169387
Implement PrivilegeCheck.
2005-04-22 21:17:42 +00:00
Alexandre Julliard
b965457c4a
Get rid of the remaining calls to strncpyW, and remove that function
...
from wine/unicode.h.
2005-04-21 17:18:50 +00:00
Francois Gouget
3ef8c51c8a
Tweak the API documentation to silence winapi_check warnings.
2005-04-20 15:18:42 +00:00
James Hawkins
8516d1969d
Set the backup/restore privilege.
2005-04-19 12:00:04 +00:00
Troy Rollo
8bf4d76681
Correct test of BOOL return value in ControlService.
2005-04-19 10:24:22 +00:00
James Hawkins
fa18fad2b0
Remove two unnecessary traces.
...
Break up one test into two.
2005-04-19 10:24:06 +00:00
James Hawkins
89f67d7b09
Add RegUnLoadKey test.
2005-04-19 09:47:10 +00:00
Jakob Eriksson
163f5ab923
Fail gracefully on permission denied.
2005-04-18 09:52:40 +00:00
James Hawkins
a9d5de8414
RegDeleteKey fails if the lpSubKey param is NULL.
2005-04-16 10:49:10 +00:00
Jakob Eriksson
9117e1c463
ERROR_PRIVILEGE_NOT_HELD can be returned for NT4.
2005-04-15 16:12:28 +00:00
Jakob Eriksson
7fb79e34a0
Win98 can return ERROR_CALL_NOT_IMPLEMENTED.
2005-04-15 16:12:14 +00:00
James Hawkins
2a8f7962ff
Pass an empty string instead of NULL to RegDeleteKey to delete hKey.
2005-04-13 14:40:58 +00:00
Steven Edwards
4a26da2142
Partially implement CreateProcessAsUser.
2005-04-13 11:02:59 +00:00
Hans Leidekker
4ead2b4cb7
Implement GetNamedSecurityInfo.
2005-04-11 14:25:41 +00:00
Michael Jung
44cb0906da
Make crypt functions more robust in case of incorrect api usage.
2005-04-11 12:55:36 +00:00
James Hawkins
eb9250bf12
Create the 'Test' value in a temporary subkey to avoid conflicts
...
between tests.
2005-04-11 12:52:32 +00:00
Stefan Leichter
fdd2c7651a
Fix GetFileSecurityA test on Win98.
2005-03-31 10:07:11 +00:00
Michael Jung
46d2be988a
Removed the incomplete signature checking code.
2005-03-30 18:56:41 +00:00
Robert Shearman
f74b0adbca
Move save_registry and unload_key server calls to ntdll.
2005-03-30 10:21:15 +00:00
Mike McCormack
ddf74e6798
Implement ChangeServiceConfig.
2005-03-29 19:51:40 +00:00
James Hawkins
580ded65e7
- Implement NtLoadKey.
...
- Forward RegLoadKey to NtLoadKey.
2005-03-29 11:38:58 +00:00
Michael Jung
976bdc4faa
Added a test for advapi32, which documents a crash in wine triggered
...
by incorrect api usage.
2005-03-29 11:32:13 +00:00
Stefan Leichter
25102d6b25
Fix GetFileSecurityW for not existing directories/files.
2005-03-29 11:31:18 +00:00
Stefan Leichter
3548b87f75
Added a test for GetFileSecurityA.
2005-03-28 10:00:59 +00:00
James Hawkins
1ef206de77
Replace a trace with a previously removed test.
2005-03-25 10:26:18 +00:00
Jakob Eriksson
6be7d751a0
Fix some Windows 95 issues.
2005-03-24 19:02:38 +00:00
Hans Leidekker
860c90a322
Pretend there are 0 log records.
...
Improve traces.
2005-03-23 13:09:27 +00:00
James Hawkins
34955ea696
Add RegSaveKey, RegLoadKey tests.
2005-03-23 11:59:06 +00:00
Jakob Eriksson
461c830745
Eliminate HeapAlloc casts.
2005-03-22 18:26:06 +00:00
Jakob Eriksson
30af06f788
Fix for NT4 behaviour.
2005-03-22 16:39:02 +00:00
Vincent Béron
1e365f7791
Fixed some calling conventions.
2005-03-21 10:32:45 +00:00
Jakob Eriksson
21a0c3b4fc
CryptAcquireContextA() can return NTE_FAIL on Windows 98.
2005-03-15 19:32:38 +00:00
Alexandre Julliard
3fe9aa2054
Avoid accessing an uninitialized string in the failure case.
2005-03-14 17:20:58 +00:00
Alexander Yaworsky
401d4cf42a
Correct incorrect use of arguments to QueryServiceConfigA. Spotted by
...
Troy Rollo.
2005-03-10 11:14:04 +00:00
Jason Edmeades
de70942e6d
Add stub for SetSecurityInfo.
2005-03-07 11:00:24 +00:00
Jakob Eriksson
0667f919ab
Account for permissions on Win2k.
2005-03-05 10:47:13 +00:00
Troy Rollo
bf6d5fc66b
Make GetFileSecurityW return a standard SECURITY_DESCRIPTOR instead of
...
an uninitialised (and invalid) one.
2005-03-05 10:46:34 +00:00
Troy Rollo
4021f530d7
Return an empty string for service dependencies when there are no
...
dependencies, rather than a NULL pointer, which causes some apps to
SEGV.
2005-03-04 12:32:50 +00:00
Troy Rollo
74e2cfb66c
Correct incorrect use of arguments to QueryServiceConfigW.
2005-03-04 10:47:41 +00:00
James Hawkins
e8d1e2f745
Fix RegOpen/CloseKey.
2005-02-25 16:52:10 +00:00
Jakob Eriksson
e2dab32daa
Apparently NT4 can also return ERROR_ENVVAR_NOT_FOUND.
2005-02-23 12:44:15 +00:00
James Hawkins
d5e2b7c843
Add RegOpenKey, RegCloseKey tests.
2005-02-21 20:37:26 +00:00
Jakob Eriksson
e026ef742e
Apparently NT4 can also return ERROR_ENVVAR_NOT_FOUND.
2005-02-17 11:50:36 +00:00
Francois Gouget
dd073bbb3f
Cast the GetProcAddress() return value to avoid warnings about the
...
function pointer being of the wrong type.
Fix assorted signed/unsigned comparison warnings.
2005-02-14 21:04:45 +00:00
Vincent Béron
d8a26f2c5f
Suppress a warning.
2005-02-14 11:52:48 +00:00
Stefan Leichter
68e1208f59
Make advapi32_test.exe loadable on NT 3.51.
2005-02-14 11:06:16 +00:00
Robert Shearman
b0f02b28b9
- Implement AdjustTokenPrivileges, DuplicateTokenEx and
...
GetTokenInformation (for the TokenPrivileges case).
- Return STATUS_NO_TOKEN for OpenThreadToken when there is no token
set for the thread.
2005-02-11 11:52:06 +00:00
Francois Gouget
4d801b66e6
Assorted spelling fixes.
2005-02-10 19:19:35 +00:00
Alexandre Julliard
d6df8f5675
Don't make the test key volatile, that can break other tests.
2005-01-27 11:15:00 +00:00
Mike McCormack
81ed8be90d
Convert services to use pipes for RPC instead of shared memory.
2005-01-24 19:33:43 +00:00
Mike McCormack
939179d681
Fix, add and rearrange winsvc.h declarations.
2005-01-14 16:50:57 +00:00
Mike McCormack
c3ead97b4e
Move all service stubs together, make them consistent.
2005-01-14 16:20:41 +00:00
Mike McCormack
1afd5f68f8
Cleanup service handles.
2005-01-14 15:13:40 +00:00
Mike McCormack
4a0f999859
Use CreateEventW in preference to CreateEventA for unnamed events.
2005-01-07 15:40:09 +00:00
Jakob Eriksson
6239fc72de
On NT4 we can also get ERROR_RING2_STACK_IN_USE from
...
CryptAcquireContext().
2005-01-04 20:31:53 +00:00
Mike McCormack
8d830b6246
Add some missing declarations in the spec file.
2005-01-03 20:10:45 +00:00
Hans Leidekker
0cc2031409
Stub implementations for GetKernelObjectSecurity,
...
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 17:12:51 +00:00
Michael Stefaniuc
15a308a9d7
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2005-01-03 14:56:42 +00:00
Mike McCormack
816f86560e
Fix CreateService's error code for a service that already exists.
2004-12-27 17:44:47 +00:00
Rein Klazes
3714a39867
Correct cases where arguments of ok() calls depend on the order in
...
which they are evaluated.
2004-12-27 17:26:37 +00:00
Mike McCormack
1645ab0492
Don't use RtlCreateUnicodeStringFromAsciiz, it doesn't preserve NULL.
2004-12-27 17:10:31 +00:00
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Alexandre Julliard
1d36d12917
Fixed prototypes of a couple of ntdll functions.
...
Replaced the CallWin32ToNt macro by a proper function.
PBOOL cannot be cast to PBOOLEAN, we need to use an intermediate
variable.
2004-12-22 15:31:16 +00:00
Hans Leidekker
49f7f6c208
Stub implementations for AdjustTokenGroups, AreAllAccessesGranted,
...
CreatePrivateObjectSecurity, CreateProcessAsUser{A,W},
DestroyPrivateObjectSecurity, DuplicateToken{,Ex},
EnumDependentServices{A,W}, GetEffectiveRightsFromAcl{A,W},
ConvertStringSecurityDescriptorToSecurityDescriptorA. Implementations
for BuildExplicitAccessWithName{A,W},
BuildTrusteeWithObjectsAndName{A,W},
BuildTrusteeWithObjectsAndSid{A,W}.
Correct prototype for InitializeAcl, RtlCopySid and RtlGetAce.
Use the CallWin32ToNt macro only with functions that return an
NTSTATUS.
2004-12-21 16:16:10 +00:00
Ivan Leo Puoti
a329904a3f
In OpenSCManagerW() allow lpDatabaseName to be an empty string.
2004-12-21 16:05:28 +00:00
Michael Jung
a3b97e051a
Respect the sDescription parameter in CryptSignHash and
...
CryptVerifySignature.
2004-12-21 14:34:18 +00:00
Michael Jung
e9cb2e6d5f
ixed calculation of buffer size in CRYPT_ANSIToUnicode and
...
CRYPT_UnicodeToANSI.
2004-12-20 18:52:41 +00:00
Jon Griffiths
873cd009d0
Remove unneeded headers to reduce unneeded rebuilds.
2004-12-15 10:54:44 +00:00
James Hawkins
ce4a4ef981
Minor documentation addition.
2004-12-14 15:27:05 +00:00
James Hawkins
7f34c04067
Cleanup some documentation.
2004-12-14 15:26:04 +00:00
Alexander Yaworsky
e849a56673
Check service database name in OpenSCManager().
2004-12-09 16:52:10 +00:00
Mike McCormack
0128a849b1
Stub implementations for Lsa(Store/Retrieve)PrivateData.
2004-12-08 14:02:26 +00:00
Alexander Yaworsky
9087fb2000
Notify StartService when service control dispatcher has been
...
started. Otherwise StartService terminates service process.
2004-12-08 14:01:26 +00:00
Alexander Yaworsky
e2b9000b84
Implemented RegisterServiceCtrlHandler, ControlService.
2004-12-07 14:24:58 +00:00
Stefan Leichter
2d136f0de9
Fix missing imports on NT4.
2004-12-06 20:38:24 +00:00
Mike McCormack
4bda758157
Stub implementations for DecryptFile, EncryptFile and
...
GetServiceDisplayName.
2004-12-06 16:17:08 +00:00
Alexander Yaworsky
bb1466e861
Implemented SetServiceStatus, QueryServiceStatus.
2004-12-06 11:35:22 +00:00
James Hawkins
e3ba250034
Only call test_set_provider_ex() once.
2004-12-06 11:34:40 +00:00
Alexander Yaworsky
e6985ab3a5
Basic implementation of service control dispatcher.
2004-12-02 19:51:41 +00:00
Alexander Yaworsky
78b64795d7
Introduced service thread.
2004-12-01 15:31:34 +00:00
Mike McCormack
418672f2e5
Added a stub implementation for GetCurrentHwProfileW.
2004-12-01 15:27:59 +00:00
Eric Pouech
0a258964c2
Const correctness fixes.
2004-11-30 21:38:57 +00:00
James Hawkins
88aeb475c0
Fixed a few memory leaks.
2004-11-30 17:33:27 +00:00
Alexander Yaworsky
8109cfd443
Merge Unicode and ASCII versions of StartServiceCtrlDispatcher.
...
Implement StartServiceCtrlDispatcherA on the top of
StartServiceCtrlDispatcherW.
Get rid of HEAP_strdupWtoA.
2004-11-30 17:29:03 +00:00
Alexander Yaworsky
970a877995
Move up SERV_* functions.
2004-11-21 15:50:08 +00:00
James Hawkins
2515ff77fc
Added beginnings of RegQueryValueEx tests.
2004-11-19 18:13:30 +00:00
Jason Edmeades
d80247ef67
- Stub SetServiceObjectSecurity to pretend to work (return true).
...
- Change QueryServiceObjectSecurity so it initializes the ACL with a
null DACL, and return as though it worked.
- Changed QueryServiceStatus to tell if the service is running by the
presence of some named shared storage - copied from StartService when
it checks to see if its already running.
2004-11-10 01:31:39 +00:00
Juan Lang
0fca5acba8
- implement LookupPrivilegeName
...
- correct LookupPrivilegeValue (had a buffer overrun and sometimes
returned incorrect LUIDs for well-known values)
- make AllocateLocallyUniqueId less obviously incorrect
- add a bunch of test cases
2004-11-04 04:52:17 +00:00
Jakob Eriksson
2a798e5f31
AllocateAndInitializeSid does not work on Win98.
2004-11-03 22:14:55 +00:00
Michael Jung
6b12414fc8
CryptGetUserKey: Set return key handle to zero in case of failure.
2004-11-01 21:07:24 +00:00
Michael Jung
2f2f3a1d13
CryptCreateHash: Set returned hash handle to zero in case of failure.
2004-10-27 21:15:10 +00:00
Juan Lang
531be0b887
Update comment for LsaOpenPolicy.
2004-10-25 21:43:47 +00:00
Mike McCormack
5bc8077511
Implement ChangeServiceConfig2A using ChangeServiceConfig2W.
2004-10-21 20:57:09 +00:00
Mike McCormack
2e82a0965b
Implement ChangeServiceConfigA using ChangeServiceConfigW.
2004-10-21 19:51:53 +00:00
Alexandre Julliard
bbde53fb02
RegQueryValueW must return count in bytes for empty string too.
2004-10-19 21:14:09 +00:00
Michael Jung
162171e258
Fixed a typo in CryptExportKey.
2004-10-18 19:35:24 +00:00
Michael Jung
09a81f8c3f
CryptDeriveKey - set return key handle to NULL in case of failure.
2004-10-11 19:52:54 +00:00
Alexandre Julliard
06e35a776b
Removed wrong memset calls.
2004-10-07 19:14:21 +00:00
Alexandre Julliard
6c6f71c8a9
Fixed MD4Final/MD5Final entries (spotted by Vincent Béron).
2004-10-07 19:13:33 +00:00
Hans Leidekker
b6aa6210cd
Implement MD{4,5}Init MD{4,5}Update and MD{4,5}Final.
...
Add tests for these functions.
2004-10-06 18:53:29 +00:00
Dmitry Timoshkov
f2dca03dec
Make advapi32/crypt.c test pass under win2k SP4, do stricter error
...
checking, comment out a couple of tests failing under win2k, add a
note why RSA_CPAcquireContext may fail.
2004-10-05 02:09:36 +00:00
Hans Leidekker
b96edb38cd
Implement SystemFunction006().
...
Add a test for SystemFunction006().
2004-10-04 20:42:05 +00:00
Dmitry Timoshkov
964422524c
Avoid a crash in advapi32/test_sha_ctx.c test if required entry points
...
are missing.
2004-10-04 19:31:17 +00:00
Alexander Yaworsky
d9c9bfd779
Start only first service in the service table.
2004-09-27 20:35:27 +00:00
Alexander Yaworsky
31ec065bfd
Restructured code of StartServiceCtrlDispatcherA/W.
2004-09-25 00:28:42 +00:00
Alexander Yaworsky
9d590d5059
Pass arguments to the service program.
2004-09-21 00:23:32 +00:00
Filip Navara
e1db054315
Implement A_SHA* functions present in Windows XP and later systems.
2004-09-17 18:15:28 +00:00
Juan Lang
bd0e74253c
- correct ConvertStringSidToSidW and ConvertSidToStringSidW, with
...
tests
- add ConvertStringSidToSidA
- add missing exports for ConvertStringSidToSidA/W
2004-09-16 20:27:52 +00:00
Alexander Yaworsky
6a36f28f2a
Pass argv[0] (service name) to the service program.
2004-09-16 20:27:31 +00:00
Alexander Yaworsky
81dfe73ef8
Added stubs for MD4, MD5 and SHA functions.
2004-09-16 19:09:13 +00:00
Alexander Yaworsky
8484d3fbae
Proper finalization in StartServiceW.
2004-09-14 19:39:19 +00:00
Mike McCormack
7d3431ed1d
Stub implementation for QueryServiceObjectSecurity.
2004-09-14 19:25:35 +00:00
Mike McCormack
8ea4fffb98
Make sure not to interfere with the lasterror value returned by the
...
CSP in CryptAcquireContextA.
2004-09-14 17:43:41 +00:00
Alexander Yaworsky
37180dd6d5
Implemented LockServiceDatabase and UnlockServiceDatabase.
2004-09-10 21:12:25 +00:00
Wolfgang Schwotzer
9c4890042d
LookupAccountNameA stub always returns a valid SID.
2004-09-07 20:41:35 +00:00
Mike McCormack
8100e0eec2
Return the correct error when OpenService is called with a
...
non-existing service.
2004-09-06 20:28:32 +00:00
Hans Leidekker
411fc5f164
Fix signed/unsigned comparison warnings.
2004-09-02 23:00:53 +00:00
James Hawkins
19f2669c24
- remove unnecessary type conversions
...
- added tests for crypt
2004-09-01 22:46:29 +00:00
Alexander Yaworsky
7db2149f65
Implemented QueryServiceConfigA.
2004-09-01 17:29:00 +00:00
Alexander Yaworsky
871635c650
Expand ImagePath in QueryServiceConfigW.
2004-08-31 18:50:39 +00:00
Alexander Yaworsky
3ab2818948
Sanity check when closing service handle.
2004-08-31 17:32:05 +00:00
James Hawkins
1c251e9a69
Make CryptSetProviderEx only delete the 'Name' value and not delete
...
the entire 'Type XXX' key when deleting the default provider.
2004-08-30 23:57:18 +00:00
Alexander Yaworsky
5f115371ce
Changed SC_HANDLEs from HKEYs to pointers to internal structures.
2004-08-30 23:57:03 +00:00
Huw Davies
8e9d88c1a1
Fix full name of HKEY_CURRENT_CONFIG.
2004-08-26 18:22:58 +00:00
Alexander Yaworsky
968e252149
StartService must pass full command line to service program.
2004-08-26 18:10:01 +00:00
Evan Deaubl
18e195a89b
Added GetSecurityInfo stub.
2004-08-26 00:29:06 +00:00
Mike McCormack
fd4675c501
Make SetTokenInformation call NtSetInformationToken.
2004-08-25 17:30:46 +00:00
James Hawkins
1a6fa44658
Enable ERROR_MORE_DATA to be set in CryptGetDefaultProvider.
2004-08-20 19:25:35 +00:00
James Hawkins
e02eb90509
Added tests for CryptSetProviderEx.
2004-08-20 19:25:03 +00:00
Mike McCormack
e27ae38f01
Fix BuildTrusteeWithSid, implement and test BuildTrusteeWithName.
2004-08-19 19:01:12 +00:00
Aric Stewart
4a18630fef
Let StartServiceCtrlDispatcher handle services not started by
...
StartService.
2004-08-17 22:29:01 +00:00
James Hawkins
a26b7e30b1
If pszTypeName is too small to hold the type name in
...
CryptEnumProviderTypes, return ERROR_MORE_DATA.
2004-08-17 22:08:16 +00:00
Mike McCormack
945364754e
Remove unnecessary casts in crypt tests.
2004-08-17 22:07:59 +00:00
Mike McCormack
93eeaa417d
Implemented Get/SetFileSecurity A->W.
2004-08-16 23:18:23 +00:00
James Hawkins
25a6a0e08a
Fix alloc test in CryptEnumProviderTypesW that failed if the alloc
...
succeeded.
2004-08-16 21:10:38 +00:00
James Hawkins
ddad3152a1
Fixed a few crypt test bugs.
2004-08-16 21:10:18 +00:00
Mike McCormack
985646f07a
Declaration, implemention and test for BuildTrusteeWithSid.
2004-08-16 21:07:50 +00:00
Mike McCormack
d73c03a8b0
Add some stub declarations.
2004-08-16 19:58:24 +00:00
Mike McCormack
55257303d7
Move declaration of LSA* structs to ntsecapi.h.
2004-08-16 19:47:21 +00:00
Francois Gouget
870f55fefc
Fix the PSID and PSECURITY_DESCRIPTOR types.
...
Add PISID and PISECURITY_DESCRIPTOR.
2004-08-13 23:55:43 +00:00
Mike McCormack
edf55ec7d9
Implement SetThreadToken using NtSetInformationThread.
2004-08-13 23:20:27 +00:00
James Hawkins
7aa82c80d4
If the pszProvName param of CryptEnumProviders is too small to hold
...
the provider name, SetLastError to ERROR_MORE_DATA.
2004-08-13 19:45:40 +00:00
James Hawkins
e672d8b6b4
Added tests for CryptEnumProviders.
2004-08-12 03:24:20 +00:00
James Hawkins
e1f5370f42
Cleanup A->W cross call in CryptEnumProviders.
2004-08-12 03:24:10 +00:00
Mike McCormack
f8167f01bc
Implement A->W call for SetNamedSecurityInfo.
2004-08-09 22:55:47 +00:00
James Hawkins
8cc77c1805
Make CryptEnumProvidersA pcbProvName parameter contain the correct
...
size of the provider name on return.
2004-08-09 22:53:58 +00:00
Mike McCormack
d161a8f64e
Fix definition of LookupPrivilegeNameW and declare it.
2004-08-09 19:46:15 +00:00
James Hawkins
62851fdb52
Fix alloc failure check in CryptEnumProvidersW.
2004-08-09 18:51:48 +00:00
Mike McCormack
e00a0ea330
Added a test for ConvertSidToStringSidW.
2004-08-09 18:47:22 +00:00
Mike McCormack
be303074d6
Implemented ConvertSidToStringSidA/W.
2004-08-09 18:47:06 +00:00
Mike McCormack
2d86d17f2f
Implement A->W call for GetNamedSecurityInfo.
2004-08-06 17:31:17 +00:00
Alexandre Julliard
c09881d51c
Fixed some more freeing issues in CryptAcquireContextA.
2004-08-02 18:49:26 +00:00
Michael Jung
4ce6ee1b31
Fixed a potential double call to CRYPT_Free on variable "temp".
2004-07-30 00:07:35 +00:00
Alexandre Julliard
bba76fca45
Don't crash on NULL data in RegSetValueExA (reported by Mike Hearn and
...
Andreas Mohr).
Removed a couple of unnecessary version checks.
2004-07-24 02:32:50 +00:00
Michael Jung
74ed099347
- Changed some FIXMEs to TRACEs, since they report on a problem in the
...
way the client uses the dll rather than in the dll itself.
- Cover the case, when the pszProvider parameter points to an empty
string.
- Fixed some imprecisions in error reporting.
- Removed the "wine_todo's" arround the corresponding unit-tests.
2004-07-24 02:27:15 +00:00
Michael Jung
7439680542
- Fixed a problem with dwProvType values greater than 99 in
...
CRYPT_GetTypeKeyName.
- Fixed error reporting in the case of dwProvType == 0.
- Removed "todo_wine" from the corresponding unit test.
2004-07-22 19:43:03 +00:00
Michael Jung
ccf487fc4d
Added some unit tests for the CryptAcquireContext API function.
2004-07-21 19:37:29 +00:00
Alexandre Julliard
01bb813156
Fixed some duplicate CRYPT_Free calls (spotted by Michael Jung).
2004-07-16 19:19:00 +00:00
Michael Jung
4651067f43
Use RegQueryValueExA instead of RegQueryValueA in
...
CryptEnumProviderTypes.
2004-07-15 18:59:34 +00:00
Michael Jung
81e6f0c15c
Reference counting for CRYPTPROV objects.
...
Implemented CryptContextAddRef.
2004-07-13 23:34:13 +00:00
James Hawkins
6a358c4090
Added and cleaned API docs.
2004-07-13 23:33:14 +00:00
James Hawkins
250c7c08bb
Added some more API docs.
2004-07-12 23:32:10 +00:00
Ge van Geldorp
606cc0acb6
Add missing privilege names.
2004-07-07 00:47:50 +00:00
William Lahti
d5a31871cd
Implemented AreAnyAccessesGranted.
2004-05-25 00:22:42 +00:00
Juan Lang
56b5164686
- If a crypto provider does not have a Signature in the registry,
...
check for the presence of the SigInFile value before failing.
- Get rid of a couple redundant assignments.
2004-05-17 19:48:00 +00:00
Mike McCormack
0effd76987
Pass crypt provider and type to CPAcquireContext.
2004-05-12 23:29:44 +00:00
Alexandre Julliard
6ddfba14e2
Fixed buffer size handling in GetUserNameA (reported by Hannu
...
Valtonen).
2004-05-10 21:26:58 +00:00
Alexandre Julliard
c4effa39e6
Use the Unix codepage to convert the user name to Unicode.
2004-05-07 04:01:28 +00:00
Francois Gouget
0345908a27
Assorted spelling fixes.
2004-04-28 00:24:44 +00:00
Jon Griffiths
50ce0844ba
Documentation fixes.
2004-04-23 21:32:34 +00:00
Francois Gouget
52c0832161
Make Unicode strings static const.
2004-04-20 01:12:17 +00:00
Francois Gouget
6a6c85c6d8
Make Unicode const strings static so they are not copied to the stack
...
each time we enter the function.
2004-04-19 20:12:14 +00:00
Mike Hearn
481a67e887
Documentation for SystemFunction040 and SystemFunction041 has become
...
available, so stub them out in case applications use them.
2004-04-17 00:23:50 +00:00
Alexandre Julliard
bea945eed9
OpenServiceW: don't use the requested service access rights for the
...
registry key access rights, they are not the same thing.
2004-04-12 22:18:39 +00:00
Alexandre Julliard
c420138d99
OpenSCManagerA/W arguments are strings.
2004-04-12 22:11:24 +00:00
Raphael Junqueira
8c16d405e0
Added some stubs.
2004-04-07 19:00:30 +00:00
Alexandre Julliard
9e4ed6460c
.spec.c files are no longer used for 32-bit dlls.
2004-03-24 03:36:44 +00:00
Juan Lang
4161a8b474
Stub CommandLineFromMsiDescriptor to prevent a crash in Accelerys
...
Materials Studio.
2004-03-22 21:31:26 +00:00
Juan Lang
ae176d1629
Allow RegConnectRegistryW to the local machine name.
2004-03-18 01:34:23 +00:00
Alexandre Julliard
589e115233
We no longer use the .exe.spec.c files.
2004-03-02 21:16:37 +00:00
Robert Shearman
8447121451
- Remove duplicate free.
...
- Remove debug message that dumps invalid string.
2004-02-27 04:41:06 +00:00
Francois Gouget
6b6ed724ae
Add missing '\n's to debug traces.
2004-01-27 00:01:43 +00:00
Francois Gouget
e18aa3f614
Add trailing '\n's to ok() calls.
2004-01-26 20:23:25 +00:00
Robert Shearman
65e818272b
Partially implement RegOpenUserClassesRoot.
2004-01-16 04:40:33 +00:00
Mike McCormack
2050c469ef
Added missing LF in trace.
2004-01-06 20:40:31 +00:00
Mike Hearn
43cb03be3a
Implemented RegFlushKey and NtFlushKey.
2004-01-03 00:38:30 +00:00
Juan Lang
c02488b5f0
Read the Policy{Account,Primary}DomainInformation from the registry,
...
rather than hardcoding it to "DOMAIN".
2003-12-30 19:21:11 +00:00
Aric Stewart
3dc71b65a7
Better handling of some service functions.
2003-12-13 03:25:37 +00:00
Francois Gouget
8f63a714b2
Try not to display uninitialized data in traces (found by Valgrind).
2003-12-13 01:34:40 +00:00
Huw Davies
28c2ea07ce
Don't crash if lpDependencies is NULL.
2003-12-11 04:26:20 +00:00
Hans Leidekker
3114368152
Remove ntdll from imports.
2003-12-08 21:46:06 +00:00
Mike McCormack
9b513ad686
Stub implementations for ChangeServiceConfigA/W.
...
Implement CreateServiceW and call it from CreateServiceA.
Partial implementation of QueryServiceConfigW.
2003-12-02 03:48:53 +00:00
Mike McCormack
a7270ec780
Improve error handling in CryptAcquireContext.
2003-11-18 20:40:12 +00:00
Alexandre Julliard
f9be2f3d21
Removed some unnecessary includes.
2003-11-17 20:31:29 +00:00
Ulrich Czekalla
fd5e811c4e
Added stubs for AccessCheckByType, AddAuditAccessAce,
...
GetNamedSecurityInfoA, GetNamedSecurityInfoW.
Implemented ConvertStringSecurityDescriptorToSecurityDescriptorW,
DeleteAce, MakeAbsoluteSD, GetAclInformation, ConvertStringSidToSidW,
RtlDeleteAce, RtlQueryInformationAcl.
2003-11-11 22:03:24 +00:00
Mike Hearn
2ea3dc4302
Implemented ReportEventA/W.
2003-11-11 21:59:15 +00:00
Robert Shearman
d6a06f942e
- Fix error paths in advapi32.CryptAcquireContextA.
...
- Call CRYPT_VerifyImage to verify the signature, even though it
currently does nothing.
2003-10-22 03:04:30 +00:00
Daniel Marmier
c33e4c4723
RegCreateKeyEx{A,W}: state that class string is constant.
2003-10-21 23:44:37 +00:00
Dimitrie O. Paun
fbdfd910c1
Remove SYMBOLFILE and LDDLLFLAGS from Makefiles.
2003-10-11 01:09:15 +00:00
Alexandre Julliard
b10dcfe3b9
Make sure we always use the same name for the semaphore (spotted by
...
Ben A L Jemmett).
2003-10-10 00:05:49 +00:00
Daniel Marmier
ee1eb63b31
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-07 03:30:47 +00:00
Jon Griffiths
4c1fa161a3
Documentation updates.
2003-10-01 03:20:21 +00:00
Michael Stefaniuc
082e0bfe93
Fix missing mem freeing on error path.
2003-10-01 03:14:29 +00:00
Jon Griffiths
90535ce905
Various test fixes for XP/msvc.
2003-09-25 20:29:40 +00:00