Commit dc5e818
committed
Correct the docs on when constructing a Digest can fail
PR #92 made the `Digest` constructors partial, so construction raises when
OpenSSL cannot allocate the context. The package docstring still said
construction cannot fail and that the failure surfaces at the first
`append` or `final`, and it left the constructors off the list of partial
functions.
Two unreleased release notes were wrong too. One said a digest that could
not be created reports it at the first `append` or `final`; the other said
construction now raises rather than returning a digest that fails on every
later call. Before #92 a failed construction crashed, so both described a
state that never shipped.
Closes #1061 parent b870be6 commit dc5e818
2 files changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
0 commit comments