GithubHelp home page GithubHelp logo

Comments (3)

kareem-wolfssl avatar kareem-wolfssl commented on July 17, 2024 1

Hi @ar-visions,

For a Windows build, you're going to have a much easier time using something like MinGW where you can use our ./configure script, is this possible for your setup?
Otherwise, your build flags look correct to me based on our Python build. Are you running into build issues with these flags? Note that our CMake support is incomplete, for example WOLFSSL_SCRYPT and WOLFSSL_TLSV10 are not supported via CMake, you will need to manually specify their CFLAGS. For help translating configure flags to CFLAGS, see configure.ac.

Python will need to find wolfSSL's library (.dll) and include files (.h). On Linux, this would be in /usr/local/ after running make install. I'm not sure if there's an equivalent on Windows, you may need to manually add to Python's search path, or move wolfSSL's library/header files.

Thanks,
Kareem

from osp.

ar-visions avatar ar-visions commented on July 17, 2024

I have this CMakeSettings.json so far. I did a rough search to get the names, but I'm not so sure about CFlags
I believe I found the equivalent compared to the args used in the configuration line in Python/build-wolfssl.sh

I'm a bit confused as to what Python needs to find afterwards. I assume I just add a prefix to its search but not aware of the files I need to have interfaced w Python

{
    "configurations": [
      {
        "name": "PythonCompatible",
        "generator": "Ninja",
        "cmakeCommandArgs": "",
        "buildCommandArgs": "",
        "ctestCommandArgs": "",
        "variables": [
          {
            "name": "WOLFSSL_OPENSSLALL",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_TLS13",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_TLSX",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_TLSV10",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_POSTAUTH",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_CERTEXT",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_CERTGEN",
            "value": "ON"
          },
          {
            "name": "WOLFSSL_SCRYPT",
            "value": "ON"
          },
          {
            "name": "CFLAGS",
            "value": "-DHAVE_EX_DATA;-DWOLFSSL_ERROR_CODE_OPENSSL;-DHAVE_SECRET_CALLBACK;-DWOLFSSL_PYTHON;-DWOLFSSL_ALT_NAMES;-DWOLFSSL_SIGNER_DER_CERT"
          }
        ]
      }
    ]
  }

from osp.

ar-visions avatar ar-visions commented on July 17, 2024

WOLFSSL_TLSV10 not found effectively. just a note to add.

from osp.

Related Issues (7)

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.