[Openvpn-devel] [PATCH] win32: detect arm64 architecture and emulations

2022-11-04 Thread Lev Stipakov
From: Lev Stipakov Properly detect process architecture and machine architecture, including arm64. Print process architecture and, if machine architecture is different (we are running in emulation), print that too. Signed-off-by: Lev Stipakov --- src/openvpn/win32.c | 123

[Openvpn-devel] [PATCH v6 2/2] Allow setting control channel packet size with max-packet-size

2022-11-04 Thread Arne Schwabe
Currently control packet size is controlled by tun-mtu in a very non-obvious way since the control overhead is not taken into account and control channel packet will end up with a different size than data channel packet. Instead we decouple this and introduce max-packet-size. Control packet size d

[Openvpn-devel] [PATCH v6 1/2] Refactor/optimise code sending TLS control channel messages

2022-11-04 Thread Arne Schwabe
This commit originally tried to solve a problem that the SSL library might split up a control frame into multiple TLS records when doing multiple reads. However, this does not seem to be actually the case. OpenVPN will consider a control message packet complete when the TLS record is complete, we