# std.crypto.tls: remove hardcoded initial loop · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/485f20a10ab489274b71b0d3106dcf81dbe3ac15)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 485f20a10ab489274b71b0d3106dcf81dbe3ac15

Requested commit: 485f20a10ab489274b71b0d3106dcf81dbe3ac15

Commit: 485f20a10ab489274b71b0d3106dcf81dbe3ac15

Tree: f32b757c41e3895ccb6297fd83b9bab47c719cf5

Author: Jacob Young

Committer: Jacob Young

## Message

```
std.crypto.tls: remove hardcoded initial loop

This was preventing TLSv1.2 from working in some cases, because servers
are allowed to send multiple handshake messages in the first handshake
record, whereas this inital loop was assuming that it only contained a
server hello.

```

## Parents

- [90a761c18659919f466715714395ce27425c45f7](https://git.cafe/gitcafe/zig/commit/90a761c18659919f466715714395ce27425c45f7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/485f20a10ab489274b71b0d3106dcf81dbe3ac15?format=markdown)
