Commit 2cdab83
Fix missing return value check in EVP_PKEY_sign_init
THROW(EVP_PKEY_sign_init(ctx)) treats any non-zero return as success,
including negative error codes (-2 = operation not supported). The
verify() path already checks == 1 correctly; bring sign() in line.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 24e227d commit 2cdab83
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
1449 | | - | |
| 1449 | + | |
1450 | 1450 | | |
1451 | 1451 | | |
1452 | 1452 | | |
| |||
0 commit comments