Back to indirect pkcs11.New
This commit is contained in:
@@ -13,8 +13,6 @@ import (
|
|||||||
"bitbucket.org/digitorus/pdfsign/sign"
|
"bitbucket.org/digitorus/pdfsign/sign"
|
||||||
"bitbucket.org/digitorus/pdfsign/verify"
|
"bitbucket.org/digitorus/pdfsign/verify"
|
||||||
"bitbucket.org/digitorus/pkcs11"
|
"bitbucket.org/digitorus/pkcs11"
|
||||||
|
|
||||||
p11 "github.com/miekg/pkcs11"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
@@ -69,7 +67,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load Library
|
// Load Library
|
||||||
ctx := p11.New(lib)
|
ctx := pkcs11.New(lib)
|
||||||
if ctx == nil {
|
if ctx == nil {
|
||||||
log.Fatal("Failed to load library")
|
log.Fatal("Failed to load library")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user