OpenVPN / openvpn3

OpenVPN 3 is a C++ class library that implements the functionality of an OpenVPN client, and is protocol-compatible with the OpenVPN 2.x branch.
https://openvpn.net
Other
977 stars 386 forks source link

How to build the library on windows? #291

Closed k-kdan closed 8 months ago

k-kdan commented 8 months ago

I followed the instructions here:

https://github.com/OpenVPN/openvpn3?tab=readme-ov-file#building-with-visual-studio

How should I go on from here? I do not see any lib files generated, where can I find them?

schwabe commented 8 months ago

There is no library target. OpenVPN3 library works by including the header files in your project and directly linking it. See the ovpncli test binary or one of the open source clients (ics-openvpn or openvpn3-linux).

k-kdan commented 6 months ago

I still can't manage to do this, can you help me out writing simple code to connect to an .ovpn file?

dsommers commented 6 months ago

@k-kdan Have a look at the reference client implementation: test/ovpncli/cli.cpp