Added basic PC/SC (WinSCard) smartcard support. (0.17.0)
This commit is contained in:
parent
1ac163a01e
commit
945d668ccb
18 changed files with 693 additions and 4 deletions
14
examples/pcsc_example.fun
Executable file
14
examples/pcsc_example.fun
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env fun
|
||||
|
||||
// Minimal PCSC example for Fun language
|
||||
// Establish context and list readers (prints [] if none or unsupported)
|
||||
|
||||
class Pcsc()
|
||||
fun list_readers(this)
|
||||
ctx = pcsc_establish()
|
||||
readers = pcsc_list_readers(ctx)
|
||||
print(readers)
|
||||
_ = pcsc_release(ctx)
|
||||
|
||||
p = Pcsc()
|
||||
p.list_readers()
|
||||
Loading…
Add table
Add a link
Reference in a new issue