2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(-D__SECUR32__)
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(secur32.dll secur32.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
dllmain.c
|
2014-09-25 12:37:19 +00:00
|
|
|
lsalpc.c
|
2011-05-16 13:12:07 +00:00
|
|
|
sspi.c
|
|
|
|
stubs.c
|
2014-08-30 21:31:32 +00:00
|
|
|
thunks.c
|
|
|
|
wrapper.c
|
[SECUR32]: As an interim step towards a proper NTLM implementation that is done by Samuel Serapion, I temporarily commit Wine's NTLM code layer around Samba's "ntlm_auth" utility. In addition I add the kerberos & negotiate stubs too.
This is not a problem on Wine, because they run on Linux distributions, most of which have Samba available. But this is not the case on Windows / ReactOS, so few adaptations were needed: in the dispatcher.c code, the fork_helper function was partially rewritten around CreateProcess to start the ntlm_auth utility (I try to use maximally the CRT to not have to rewrite other functions). This works great.
But then, to make this NTLM layer working on ReactOS, one has to find a Windows build of Samba. Here is one: http://smithii.com/samba . This is a Samba 3.0.23c build. You need to follow *exactly* the manual installation steps to make it work (actually, everything up to "Step 6" included, i.e. running smbsetup.cmd). This means in particular to copy Samba into C:\Program Files\samba, as this path is also hardcoded into the executables.
As the Wine's NTLM layer expects Samba 3.0.25+, I manually downgraded the expected version, which appears to still work nice for the needs of Office 2010 installation.
You can now play with it and try to install Office 2010.
CORE-12601 #comment Wine's NTLM layer committed in r73868 as an interim step towards a proper implementation.
CORE-12279
svn path=/trunk/; revision=73868
2017-02-20 22:28:07 +00:00
|
|
|
wine/base64_codec.c
|
|
|
|
wine/dispatcher.c
|
|
|
|
wine/hmac_md5.c
|
|
|
|
wine/kerberos.c
|
|
|
|
wine/negotiate.c
|
|
|
|
wine/ntlm.c
|
|
|
|
wine/util.c
|
2014-02-10 12:19:56 +00:00
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-10 12:19:56 +00:00
|
|
|
add_library(secur32 SHARED
|
|
|
|
${SOURCE}
|
|
|
|
secur32.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/secur32_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/secur32.def)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-08-30 21:31:32 +00:00
|
|
|
set_module_type(secur32 win32dll UNICODE)
|
|
|
|
target_link_libraries(secur32 lsalib wine)
|
[SECUR32]: As an interim step towards a proper NTLM implementation that is done by Samuel Serapion, I temporarily commit Wine's NTLM code layer around Samba's "ntlm_auth" utility. In addition I add the kerberos & negotiate stubs too.
This is not a problem on Wine, because they run on Linux distributions, most of which have Samba available. But this is not the case on Windows / ReactOS, so few adaptations were needed: in the dispatcher.c code, the fork_helper function was partially rewritten around CreateProcess to start the ntlm_auth utility (I try to use maximally the CRT to not have to rewrite other functions). This works great.
But then, to make this NTLM layer working on ReactOS, one has to find a Windows build of Samba. Here is one: http://smithii.com/samba . This is a Samba 3.0.23c build. You need to follow *exactly* the manual installation steps to make it work (actually, everything up to "Step 6" included, i.e. running smbsetup.cmd). This means in particular to copy Samba into C:\Program Files\samba, as this path is also hardcoded into the executables.
As the Wine's NTLM layer expects Samba 3.0.25+, I manually downgraded the expected version, which appears to still work nice for the needs of Office 2010 installation.
You can now play with it and try to install Office 2010.
CORE-12601 #comment Wine's NTLM layer committed in r73868 as an interim step towards a proper implementation.
CORE-12279
svn path=/trunk/; revision=73868
2017-02-20 22:28:07 +00:00
|
|
|
add_importlibs(secur32 advapi32 netapi32 msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(secur32 precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET secur32 DESTINATION reactos/system32 FOR all)
|