Skip to content

Commit

Permalink
#17 better error clarity for irrational capi flow with
Browse files Browse the repository at this point in the history
  • Loading branch information
avivklas committed Sep 2, 2021
1 parent f4f96f7 commit 260a1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certstore_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (wpk *winPrivateKey) cngSignHash(opts crypto.SignerOpts, digest []byte) ([]

// capiSignHash signs a digest using the CryptoAPI APIs.
func (wpk *winPrivateKey) capiSignHash(opts crypto.SignerOpts, digest []byte) ([]byte, error) {
if _, ok := opts.(*rsa.PSSOptions); !ok {
if _, ok := opts.(*rsa.PSSOptions); ok {
return nil, ErrUnsupportedHash
}

Expand Down

0 comments on commit 260a1e7

Please sign in to comment.