Skip to content

Commit

Permalink
limit PKCS#11 handle parsing to 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
e-asphyx committed Oct 10, 2024
1 parent 70f7e04 commit 9825b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vault/pkcs11/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (v *PKCS11Vault) GetPublicKey(ctx context.Context, id string) (vault.Stored
if v.slot == nil {
return nil, v.formatError(errors.New("locked"))
}
handle, err := strconv.ParseUint(id, 16, 64)
handle, err := strconv.ParseUint(id, 16, 32)
if err != nil {
return nil, v.formatError(err)
}
Expand Down

0 comments on commit 9825b45

Please sign in to comment.