| ... | @@ -109,7 +109,7 @@ pub const Options = struct { | ... | @@ -109,7 +109,7 @@ pub const Options = struct { |
| 109 | read_buffer: []u8, | 109 | read_buffer: []u8, |
| 110 | /// Cryptographically secure random bytes. The pointer is not captured; data is only | 110 | /// Cryptographically secure random bytes. The pointer is not captured; data is only |
| 111 | /// read during `init`. | 111 | /// read during `init`. |
| 112 | entropy: *const [240]u8, | 112 | entropy: *const [entropy_len]u8, |
| 113 | /// Current time according to the wall clock / calendar, in seconds. | 113 | /// Current time according to the wall clock / calendar, in seconds. |
| 114 | realtime_now_seconds: i64, | 114 | realtime_now_seconds: i64, |
| 115 | | 115 | |
| ... | @@ -130,6 +130,8 @@ pub const Options = struct { | ... | @@ -130,6 +130,8 @@ pub const Options = struct { |
| 130 | allow_truncation_attacks: bool = false, | 130 | allow_truncation_attacks: bool = false, |
| 131 | /// Populated when `error.TlsAlert` is returned from `init`. | 131 | /// Populated when `error.TlsAlert` is returned from `init`. |
| 132 | alert: ?*tls.Alert = null, | 132 | alert: ?*tls.Alert = null, |
| | 133 | |
| | 134 | pub const entropy_len = 240; |
| 133 | }; | 135 | }; |
| 134 | | 136 | |
| 135 | const InitError = error{ | 137 | const InitError = error{ |