Having tried to integrate PKCS#11 support into GnuPG (rejected with bogus and dodgy arguments, see threads documented here: http://zvrba.net/software/gpg_pkcs11.html), I can testify that the codebase is messy and complex.
Just ditch it and make something from scratch. I have more faith in the competence of NetBSD-associated people than in WK.
WK has unreasonable opinions, e.g., see this thread: http://www.reddit.com/r/programming/comments/2uw2gt/the_worl...
Having tried to integrate PKCS#11 support into GnuPG (rejected with bogus and dodgy arguments, see threads documented here: http://zvrba.net/software/gpg_pkcs11.html), I can testify that the codebase is messy and complex.
Just ditch it and make something from scratch. I have more faith in the competence of NetBSD-associated people than in WK.