win server cpp update

This commit is contained in:
josi 2023-11-02 14:27:16 +01:00
parent e0081979ab
commit 1207bc8664

View File

@ -263,6 +263,32 @@ python config64.py test
cd ../.. cd ../..
``` ```
- https://download.libsodium.org/libsodium/releases/libsodium-1.0.19-stable-mingw.tar.gz
:white_square_button: doplniť postup linkovania knižnice s prekladačom gcc
```
cd TLS1.3/cpp
mkdir -p sal/miracl/includes
cp /core/cpp/core.a sal/miracl
cp /core/cpp/*.h sal/miracl/includes
```
```
cmake -DSAL=MIRACL_SODIUM -D CMAKE_CXX_COMPILER=D:/mingw64/bin/gcc.exe -G "Unix Makefiles"
```
:white_square_button: doplniť úpravy v súboroch tls_sockets.h a tls_sockets.cpp
- tls_sockets.h:22:10: fatal error: sys/socket.h: No such file or directory #include <sys/socket.h>
- tls_sockets.cpp:31:47: error: cannot convert 'timeval*' to 'const char*' setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
```
cd CMakeFiles/client.dir
- do súboru *linkLibs.rsp* pridáme prepínače *-lws2_32* a *-lstdc++*
cd ../..
make
```
## References ## References
[Open quantum safe OpenSSL 1.1.1t](https://github.com/Crypto-TII/TLS1.3) [Open quantum safe OpenSSL 1.1.1t](https://github.com/Crypto-TII/TLS1.3)
@ -275,3 +301,18 @@ cd ../..
[Rust Cargo](https://doc.rust-lang.org/cargo/index.html) [Rust Cargo](https://doc.rust-lang.org/cargo/index.html)
[Python](https://www.python.org/) [Python](https://www.python.org/)
##
| | Linux rust client| Win rust client | Linux C++ client| Win C++ client | OpenSSL client (Docker) |
| Linux Rust server | Y | Y | Y | N | |
|Win Rust server | Y* | Y | Y* | N | |
|OpenSSL server (Docker)| | | | | |
|OpenSSL server (OQS-provider)| | | | | |
```
**(Y*)**
Hostname NOT found in certificate
Handshake Failed
Alert sent to Server - Bad Certificate
```