Giter Site home page Giter Site logo

Comments (6)

mtrojnar avatar mtrojnar commented on August 17, 2024

MSYS2 is indeed not supported. I would gladly merge a pull request correcting this issue.

from libp11.

nased0 avatar nased0 commented on August 17, 2024

Hello
I made current libp11-master version, that has autoconf and automake patches necessary for mingw, but it is not possible to compile included examples, because mingw does not support termios.h, so my patches may hurt linux builds. You can probably correct it using if !win32 condition, that I used to prevent error shown in previous post. In src\Makefile.am

install-exec-hook:
if !WIN32
    cd '$(DESTDIR)$(enginesdir)' && $(LN_S) -f pkcs11$(SHARED_EXT) libpkcs11$(SHARED_EXT)
endif

But I think that it should be done by someone that knows autoconf better than me.
My version has my "unhack" enabled to allow it to function correctly with curl and openssl s_client.
#122 (comment)
atfork.c was modified like this:

#ifdef __WIN32__
# include <winsock2.h>
#else
# include <sys/socket.h>
#endif

Anyway, you have libp11.dll and pkcs11.dll conveniently compiled in src.libs
It works fine with my libcurl based app and it is all I care about.
libp11-master.zip

from libp11.

nased0 avatar nased0 commented on August 17, 2024

IMO the best solution would be to fix examples to be mingw friendly - without terminal I/O interface.

from libp11.

mtrojnar avatar mtrojnar commented on August 17, 2024

I agree. Please submit a pull request.

from libp11.

nased0 avatar nased0 commented on August 17, 2024

Submitted
#125

IMO the correct solution to this bug is to copy pkcs11.dll (or pkcs11.so) to the engine folder before creating the symbolic link:

install-exec-hook:
    cp -pR -f .libs/pkcs11$(SHARED_EXT) $(DESTDIR)$(enginesdir)/pkcs11$(SHARED_EXT) \
    &&  cd '$(DESTDIR)$(enginesdir)' && $(LN_S) -f pkcs11$(SHARED_EXT) libpkcs11$(SHARED_EXT)

from libp11.

mtrojnar avatar mtrojnar commented on August 17, 2024

#125 was merged.

from libp11.

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.