Does there exist some web service or daemon that performs the
smartcard access for you in that context? Emscripten is at the mercy
of what web APIs are available, even though it's possible to compile
native code, it's not possible to do access devices with native
security context, since the code will run in a browser as JavaScript,
which is unprivileged and sandboxed. In order to access a native
device like this, you'll need to develop some kind of web service (a
native Linux/Windows daemon application that talks XHR or WebSockets
or similar) to do the low level native interfacing.

2017-12-10 9:44 GMT+02:00 Nick Khan <[email protected]>:
> Hi folks
> Would it be possible to port pcsclite c library into javascript? I have
> looked into nbind. I am getting stuck where emscripten does not have a
> winscard.h nor can it port windows.h seeing its a win32 specific api.
> Here's the library i like to port to javascript. basically the goal is to
> try and access a smartcard reader via browser(web application).
> https://pcsclite.alioth.debian.org/
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to