Skip to content

Commit 13356fb

Browse files
authored
deps: update to miekg/pkcs11@v1.1.2 (#44)
This brings in a signature change for Initialize. Fixes #43
1 parent aa48317 commit 13356fb

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

v4/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/letsencrypt/pkcs11key/v4
22

33
go 1.17
44

5-
require github.com/miekg/pkcs11 v1.0.2
5+
require github.com/miekg/pkcs11 v1.1.2

v4/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/miekg/pkcs11 v1.0.2 h1:CIBkOawOtzJNE0B+EpRiUBzuVW7JEQAwdwhSS6YhIeg=
2-
github.com/miekg/pkcs11 v1.0.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs=
1+
github.com/miekg/pkcs11 v1.1.2 h1:/VxmeAX5qU6Q3EwafypogwWbYryHFmF2RpkJmw3m4MQ=
2+
github.com/miekg/pkcs11 v1.1.2/go.mod h1:XsNlhZGX73bx86s2hdc/FuaLm2CPZJemRLMA+WTFxgs=

v4/key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type ctx interface {
7474
GetAttributeValue(sh pkcs11.SessionHandle, o pkcs11.ObjectHandle, a []*pkcs11.Attribute) ([]*pkcs11.Attribute, error)
7575
GetSlotList(tokenPresent bool) ([]uint, error)
7676
GetTokenInfo(slotID uint) (pkcs11.TokenInfo, error)
77-
Initialize() error
77+
Initialize(opts ...pkcs11.InitializeOption) error
7878
Login(sh pkcs11.SessionHandle, userType uint, pin string) error
7979
Logout(sh pkcs11.SessionHandle) error
8080
OpenSession(slotID uint, flags uint) (pkcs11.SessionHandle, error)

v4/key_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (c *mockCtx) GetTokenInfo(slotID uint) (pkcs11.TokenInfo, error) {
205205
return tokenInfo, nil
206206
}
207207

208-
func (c *mockCtx) Initialize() error {
208+
func (c *mockCtx) Initialize(...pkcs11.InitializeOption) error {
209209
return nil
210210
}
211211

0 commit comments

Comments
 (0)