Giter VIP home page Giter VIP logo

Comments (6)

dlenski avatar dlenski commented on June 22, 2024 2

@wannaliang Ensure you are using LibOpenConnect v8.06+ or newer. I did a bunch of bugfixes to the ciphersuite library functions, in particular in https://gitlab.com/openconnect/openconnect/-/commit/dd4693b6058f674671c1f705b55333e5a6c6c8d5 and a few subsequent commits.

from ics-openconnect.

dlenski avatar dlenski commented on June 22, 2024

I can go through ipinfo.DTLSOptions Access to x-dtls and other information

Don't do this. The CSTPOptions and DTLSOptions are Cisco-specific and even verison-of-Cisco-server-specific and will break if you're using any other protocol supported by OpenConnect.

(They really shouldn't be in the publicly-visible API at all.)

I did not find an effective way to obtain the protocol and other information

If you're looking for compression and cipher information, then https://gitlab.com/openconnect/openconnect/-/blob/master/java/src/org/infradead/libopenconnect/LibOpenConnect.java#L164-167

from ics-openconnect.

wannaliang avatar wannaliang commented on June 22, 2024

Thank you very much for your answer. But I really need that information.I have also looked at libopenconnect.java. But I didn't find a valid way to call such a method as getCSTPCipher, as if the method had no method in the JAR package to call the value. I saw a display of the log information, but I couldn't find where it came from

from ics-openconnect.

cernekee avatar cernekee commented on June 22, 2024

Can you call mOC.getCSTPCipher()? It should work the same way as the other JNI methods.

I saw a display of the log information

Most of the log messages are generated internally by the C code in libopenconnect, so they can potentially contain information that isn't accessible through the Java bindings. If there is something that's important for the caller to have, the upstream openconnect project might accept library API changes (I had to add a bunch of new APIs to support the Android port).

from ics-openconnect.

wannaliang avatar wannaliang commented on June 22, 2024

I've tried using moc.getCstpcipher to get this value, but I've got nothing. I've also tried calling this method in OpenConnectManagementThread.java but it's still empty, and I'm not sure if I can't get the value or if there's something wrong with my calling method

from ics-openconnect.

wannaliang avatar wannaliang commented on June 22, 2024

Ok, I will update the latest version and try, thank you very much for your help

from ics-openconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.