Comments (5)
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.
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.
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.
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.
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 (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimssl.