pkcs11key icon indicating copy to clipboard operation
pkcs11key copied to clipboard

Handle excess objects correctly in FindObject

Open jsha opened this issue 5 years ago • 0 comments

Currently, we are relying on a "more" boolean returned from FindObjects. But according to https://pkg.go.dev/github.com/miekg/pkcs11?tab=doc#Ctx.FindObjects,

The returned boolean value is deprecated and should be ignored.

Instead, we should ask for more objects than we need and error if we get more than 1.

Related: https://github.com/letsencrypt/boulder/pull/4972

jsha avatar Jul 22 '20 01:07 jsha