Commit 84d92aa6 authored by Patrick Bellot's avatar Patrick Bellot
Browse files

windows_ingopcs2 is ready

parent 6cae0630
This diff is collapsed.
......@@ -237,6 +237,19 @@ namespace opcua {
#endif
#ifdef _WIN32
// A Secure channel connection configuration
SOPC_SecureChannel_Config scConfig ;
scConfig.isClientSc = true ;
scConfig.url = sEndpointUrl ;
scConfig.crt_cli = crt_cli ;
scConfig.key_priv_cli = priv_cli ;
scConfig.crt_srv = crt_srv ;
scConfig.pki = pki ;
scConfig.reqSecuPolicyUri = pRequestedSecurityPolicyUri ;
scConfig.requestedLifetime = 20000 ;
scConfig.msgSecurityMode = messageSecurityMode ;
#else
// A Secure channel connection configuration
SOPC_SecureChannel_Config scConfig = {.isClientSc = true,
.url = sEndpointUrl,
......@@ -247,7 +260,7 @@ namespace opcua {
.reqSecuPolicyUri = pRequestedSecurityPolicyUri,
.requestedLifetime = 20000,
.msgSecurityMode = messageSecurityMode};
#endif
......
......@@ -58,6 +58,7 @@
<listOptionValue builtIn="false" value="AdvAPI32.lib"/>
</option>
<inputType id="org.eclipse.cdt.msvc.link.inputType.934089710" superClass="org.eclipse.cdt.msvc.link.inputType"/>
<outputType id="org.eclipse.cdt.msvc.link.outputType.1878414499" outputPrefix="lib" superClass="org.eclipse.cdt.msvc.link.outputType"/>
</tool>
<tool id="org.eclipse.cdt.msvc.lib.1079671092" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
</toolChain>
......
......@@ -58,6 +58,7 @@
<listOptionValue builtIn="false" value="AdvAPI32.lib"/>
</option>
<inputType id="org.eclipse.cdt.msvc.link.inputType.934089710" superClass="org.eclipse.cdt.msvc.link.inputType"/>
<outputType id="org.eclipse.cdt.msvc.link.outputType.790831268" outputPrefix="lib" superClass="org.eclipse.cdt.msvc.link.outputType"/>
</tool>
<tool id="org.eclipse.cdt.msvc.lib.1079671092" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
</toolChain>
......
......@@ -59,6 +59,7 @@
<listOptionValue builtIn="false" value="User32.lib"/>
</option>
<inputType id="org.eclipse.cdt.msvc.link.inputType.934089710" superClass="org.eclipse.cdt.msvc.link.inputType"/>
<outputType id="org.eclipse.cdt.msvc.link.outputType.724534543" outputPrefix="lib" superClass="org.eclipse.cdt.msvc.link.outputType"/>
</tool>
<tool id="org.eclipse.cdt.msvc.lib.1079671092" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
</toolChain>
......
......@@ -59,6 +59,7 @@
<listOptionValue builtIn="false" value="User32.lib"/>
</option>
<inputType id="org.eclipse.cdt.msvc.link.inputType.934089710" superClass="org.eclipse.cdt.msvc.link.inputType"/>
<outputType id="org.eclipse.cdt.msvc.link.outputType.1937835896" outputPrefix="lib" superClass="org.eclipse.cdt.msvc.link.outputType"/>
</tool>
<tool id="org.eclipse.cdt.msvc.lib.1079671092" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
</toolChain>
......
......@@ -58,6 +58,7 @@
<listOptionValue builtIn="false" value="AdvAPI32.lib"/>
</option>
<inputType id="org.eclipse.cdt.msvc.link.inputType.934089710" superClass="org.eclipse.cdt.msvc.link.inputType"/>
<outputType id="org.eclipse.cdt.msvc.link.outputType.284966375" outputPrefix="lib" superClass="org.eclipse.cdt.msvc.link.outputType"/>
</tool>
<tool id="org.eclipse.cdt.msvc.lib.1079671092" name="Library Manager (lib)" superClass="org.eclipse.cdt.msvc.lib"/>
</toolChain>
......
This diff is collapsed.
......@@ -7,7 +7,6 @@
<project>memoryDll</project>
<project>myArrayDll</project>
<project>opcua</project>
<project>s2opc_stack</project>
<project>xMouseDll</project>
<project>yMouseDll</project>
</projects>
......
xcopy.exe /y ..\ingopcs\libraries\mbedtls-2.3.0\library\Debug\mbedtls.dll Debug\
xcopy.exe /y ..\ingopcs\stack\src\Debug\ingopcs.dll Debug\
xcopy.exe /y ..\opcua\Debug\opcua.dll Debug\
xcopy /i /y ..\opcua-method\windows\addMethod\Debug\libaddMethod.dll server\SampleServer\Config\
xcopy /i /y ..\opcua-dll\windows\memoryDll\Debug\libmemoryDll.dll server\SampleServer\Config\
xcopy /i /y ..\opcua-dll\windows\myArrayDll\Debug\libmyArrayDll.dll server\SampleServer\Config\
xcopy /i /y ..\opcua-dll\windows\xMouseDll\Debug\libxMouseDll.dll server\SampleServer\Config\
xcopy /i /y ..\opcua-dll\windows\yMouseDll\Debug\libyMouseDll.dll server\SampleServer\Config\
Debug\opcua-server.exe server/SampleServer/Config/Config.xml 127.0.0.1 10000 certificates.127.0.0.1
pause
......@@ -47,10 +47,12 @@ MYDLL void Error::error_message(const char * const type, const char * const file
(LPSTR)(&str_error),
0,
NULL) ;
sprintf(message,"%s %d: file %s, line %d, error \"%s\"\n",type,error_num,file,line,str_error) ;
sprintf(message,"%s %d: file %s, line %d, error \"%s",type,error_num,file,line,str_error) ;
message[strlen(message)-2]='"' ;
message[strlen(message)-1]='\0' ;
LocalFree(str_error) ;
#else
sprintf(message,"%s %d: file %s, line %d, error \"%s\"\n",type,error_num,file,line,strerror(error_num)) ;
sprintf(message,"%s %d: file %s, line %d, error \"%s\"",type,error_num,file,line,strerror(error_num)) ;
#endif
debug(COM_ERR,"Error",message) ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment