Andrew Boyson / crypto

Dependents:   oldheating gps motorhome heating

Revision:
14:03a0b8fd6ddc
Parent:
10:e269fd7b9500
Child:
17:93feb2a51d58
--- a/tls/tls-connection.c	Fri Sep 27 11:31:18 2019 +0000
+++ b/tls/tls-connection.c	Wed Oct 02 20:26:04 2019 +0000
@@ -21,6 +21,7 @@
     p->lastUsed  = 0;
     p->toDo      = 0;
     p->sessionId = 0;
+    p->resume    = false;
     Sha256Start(&p->handshakeSha); //This just clears any information previously calculated
     p->clientEncrypted = false;
     p->serverEncrypted = false;
@@ -31,6 +32,7 @@
     p->serverSequence = 0;
     p->clientPositionInStreamOffset = 0;
     p->serverPositionInStreamOffset = 0;
+    p->slotPriKeyDecryption = 0;
 }
 
 struct TlsConnection* TlsConnectionNew(int id) //Never fails so never returns NULL