Coder Social home page Coder Social logo

nim-openssl-evp's Introduction

OpenSSL EVP wrapper for Nim (formerly Nimrod)

to compile nim example:

cd examples/
nim c -d:release evp_ex1

you should then be able to run with:

./evp_ex1

to compile the c example:

./configure
make

you should then be able to run with:

examples/evp_ex1_c




nim-openssl-evp's People

Stargazers

Mateusz Czapliński avatar Harald Lapp avatar

Watchers

James Cloos avatar Will Szumski avatar

nim-openssl-evp's Issues

Runtime error about obj_cleanup_defer

Programs containing openssl_evp doesn't run properly.

The compiling process seemed to be fine, but when I run the executable, it shows an error of

could not import: obj_cleanup_defer

This happened on both Windows 7 64-bit and Debian Wheezy.

I did find extern int obj_cleanup_defer in objects.h of OpenSSL, but was unable to import it: I tried to build a C program with `#include "openssl/objects.h", which gives me an undefined reference of obj_cleanup_defer.

I'm quite new to OpenSSL, so I wonder if this integer is really useful when using OpenSSL. If it's not, perhaps we can remove it from the code to avoid errors?

OpenSSL Library name in Windows

The OpenSSL dynamic libraries are libeay32.dll and ssleay32.dll for Windows, corresponding to libcrypto.so and libssl.so for Linux.

So for Windows, cryptodll shoud be "libeay32.dll".

Cannot find ASN1_SEQUENCE_ANY_it

I tried to use the library, but as soon as I import it, I get the error could not import: ASN1_SEQUENCE_ANY_it.

I guess the bindings are for an older version of OpenSSL, and some functions have been removed in the meantime. If this is the case, would it be possible to bring the library up to date with recent versions of OpenSSL? For instance, the version installed on my MacBook is OpenSSL 1.0.2l 25 May 2017

I know you probably don't work on this anymore, but if the bindings have been automated in some way, this should not be a huge burden.

Error compiling openssl_crypto.nim

The Nim 0.10.2 compiler encounted errors when compiling openssl_crypto.nim:

openssl_crypto.nim(1013, 38) Error: ')' expected

The line mentioned above turned to be:

proc sk_pop_free*(st: ptr mStack; func: proc (a2: pointer) {.cdecl.}) {.cdecl, 
    importc: "sk_pop_free", dynlib: cryptodll.}

Even when I use nim c openssl_crypto.nim, the same thing happens.
Is this a bug or I missed something when compiling it?

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.