Coder Social home page Coder Social logo

Error install about nimssl HOT 5 CLOSED

genotrance avatar genotrance commented on July 18, 2024
Error install

from nimssl.

Comments (5)

genotrance avatar genotrance commented on July 18, 2024

Hello @Peter2121 - what portions of openssl were you needing?

See rsa.nim for an example of how to wrap multiple openssl headers.

nimssl is kind of on hold right now since I'm not sure what combination of headers people might need. The way openssl is organized, there's no real top-level header that people are expected to import, and wrapping everything is too slow.

from nimssl.

Peter2121 avatar Peter2121 commented on July 18, 2024

I needed some RSA related functions (read key, check key, ...)
Finally, I found another solution, but the wrapper still seems to be interesting for me (in other projects).
In general, IMHO it would be nice to provide several wrappers (to accelerate the build when one needs just one or two) for different parts of openssl library. But I have no idea about the correct way of splitting it :)
How do another languages (python?) solve this problem?
Anyway, I think that if you can create a wrapper for everything (even if it is too slow) - it could be acceptable in many cases.

from nimssl.

darkr4y avatar darkr4y commented on July 18, 2024

According to my attempts:
I found that nimgen is used when generating this project.
The configuration can be found in the nimssl.cfg file (download from the project's releases, do not use the code where from branch master), the openssl/opensslv.h file hasn't exist in the OpenSSL project now, in its place there is the include/openssl/opensslv.h.in file. .in file extension is provided to the configure command is used to be configured the macros of a project, common operations such as ./configure --prefix=/usr
I'm not sure if fixing this problem requires updating nimgen to provide support for configure operations, and also I'm not sure if Mingw on windows has already provided this command.

from nimssl.

genotrance avatar genotrance commented on July 18, 2024

I'd really try using nimterop going forward, nimgen is pretty much archived at this point.

You can use rsa.nim linked above as the base and import different headers depending on the project needs. If you have good variations then I'll be happy to merge PRs here.

from nimssl.

darkr4y avatar darkr4y commented on July 18, 2024

OK, I will try it.
Also I'm learning Nimterop for the first time by trying to package Wolfssl, and there are some problems, so it would be great if you could help!

from nimssl.

Related Issues (3)

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.