OpenVPN / OpenVPN/openvpn3

How to use openvpn3 in java

Open
#319 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

I am a beginner in C++. I have been exposed to Java for a while, and now I want to try app development, such as implementing the Android client of openvpn. As you know, Android can be developed with Java, but the openvpn3 class library does not Support java. Then I looked up a lot of documentation,Also based on your tips, I used swig (it was my first time to come into contact with this tool) and executed ovpncli.i in the client directory, and then generated ovpncli_wrap.cxx, ovpncli_wrap.h and some java files. I don’t know how. Go ahead and use it. What I searched on the Internet is to encapsulate these into dlls. I am using Visual Studio 2022. When I put the generated cxx and h questions in, a bunch of errors were reported, such as: namespace "openvpn" has no member "DnsOptions", "openvpn::TunBuilderBase" has no member "tun_builder_add_dns_options", member functions declared using "override" cannot override base class members...etc., this is for beginners It's very painful and I need your help.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with client/ovpncli.i and the generated ovpncli_wrap.cxx, ovpncli_wrap.h, and Java files, then review the reported Visual Studio 2022 errors involving DnsOptions and TunBuilderBase. Done would require a documented, working path for using the generated OpenVPN 3 Java bindings on Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp, java
Domain
developer-experience, mobile-dev, security
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.