Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: tls/tls-connection.c
- Revision:
- 17:93feb2a51d58
- Parent:
- 14:03a0b8fd6ddc
--- a/tls/tls-connection.c Sun Oct 06 08:00:30 2019 +0000
+++ b/tls/tls-connection.c Thu Oct 10 07:38:13 2019 +0000
@@ -25,8 +25,8 @@
Sha256Start(&p->handshakeSha); //This just clears any information previously calculated
p->clientEncrypted = false;
p->serverEncrypted = false;
- for (int i = 0; i < TLS_RANDOM_SIZE; i++) p->clientRandom[i] = 0;
- for (int i = 0; i < TLS_RANDOM_SIZE; i++) p->serverRandom[i] = 0;
+ for (int i = 0; i < TLS_LENGTH_RANDOM; i++) p->clientRandom[i] = 0;
+ for (int i = 0; i < TLS_LENGTH_RANDOM; i++) p->serverRandom[i] = 0;
for (int i = 0; i < TLS_DEFERRED_CONTENT_SIZE; i++) p->deferredContent[i] = 0;
p->clientSequence = 0;
p->serverSequence = 0;