Skip to content

Commit

Permalink
editorial update
Browse files Browse the repository at this point in the history
  • Loading branch information
carblue committed Feb 18, 2017
1 parent ceb1bcb commit b97c651
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
pkcs11
======

Twofold binding to PKCS #11 Cryptoki interface (Version 2.40 Plus Errata 01) [1]
Twofold binding to PKCS #11 Cryptoki interface (Version 2.40 Plus Errata 01) [1 PKCS#11]

configuration 'deimos': Static binding, the "import-only" C header's declarations.<br>
configuration 'derelict': Dynamic binding (DerelictUtil), the header's declarations + derelict runtime loading (any pkcs#11 implementing shared library) interface.

For more information on dynamic binding and Your options with derelict-util, look at [3].<br>
For more information on dynamic binding and Your options with derelict-util, look at [3 Derelict].<br>
Here's some sample code:


Expand All @@ -20,7 +20,7 @@ import std.stdio;<br>
import pkcs11;<br>

int main() {<br>
PKCS11.load(); // makes use of default: opensc-pkcs11.so/.dll or do specify explicitely
PKCS11.load(); // makes use of default: opensc-pkcs11.so/.dll [4 OpenSC] or do specify explicitely

CK_RV rv;<br>
if ((rv=C_Initialize(NULL_PTR)) != CKR_OK) {<br>
Expand All @@ -33,9 +33,8 @@ int main() {<br>
...<br>
}


[1]: http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/pkcs11-base-v2.40.html
[2]: http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/errata01/os/include/pkcs11-v2.40/
[3]: http://derelictorg.github.io/overview/
[4]: https://www.opensc-project.org/opensc/wiki/UsingOpensc
[5]: http://ludovicrousseau.blogspot.de/2011/11/pcsc-api-spy-third-try.html
[1 PKCS#11](http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/pkcs11-base-v2.40.html)<br>
[2 PKCS#11 headers](http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/errata01/os/include/pkcs11-v2.40/)<br>
[3 Derelict](http://derelictorg.github.io/overview/)<br>
[4 OpenSC, opensc.conf/debug/debug_file, inspect (high-level) Cryptoki communication](https://github.com/OpenSC/OpenSC/wiki/Using-OpenSC)<br>
[(5 Inspect (low-level) PC/SC communication)](http://ludovicrousseau.blogspot.de/2011/11/pcsc-api-spy-third-try.html)
5 changes: 1 addition & 4 deletions deimos/pkcs11/pkcs11t.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* IMPLIED OR EXPRESS WARRANTY; there is no warranty of MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE or NONINFRINGEMENT of the rights of others.
*/

/* Latest version of the specification:
* http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/pkcs11-base-v2.40.html
*/
Expand All @@ -19,9 +19,6 @@
Written in the D programming language.
For git maintenance (ensure at least one congruent line with originating C header):
#define _PKCS11T_H_ 1
Content covered by this file is ALL of header C/libopensc/asn1.h
ALL extern(C) functions are exported from "libopensc.so|opensc.dll" binary, except those controlled by PATCH_LIBOPENSC_EXPORTS
*/

module pkcs11.pkcs11t;
Expand Down

0 comments on commit b97c651

Please sign in to comment.