Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Thu Apr 02 11:58:33 2020 +0000
Revision:
166:89e3ce39b31b
Added a httpv (vanilla HTTP) module to TCP which does a similar job to https (HTTP over TCP) and allows the http module to be independent of its caller.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 166:89e3ce39b31b 1 #include <stdint.h>
andrewboyson 166:89e3ce39b31b 2 #include <stdbool.h>
andrewboyson 166:89e3ce39b31b 3
andrewboyson 166:89e3ce39b31b 4 #include "tls.h"
andrewboyson 166:89e3ce39b31b 5 #include "http.h"
andrewboyson 166:89e3ce39b31b 6
andrewboyson 166:89e3ce39b31b 7 bool HttpsGetTrace()
andrewboyson 166:89e3ce39b31b 8 {
andrewboyson 166:89e3ce39b31b 9 return HttpGetTrace() || TlsTrace;
andrewboyson 166:89e3ce39b31b 10 }
andrewboyson 166:89e3ce39b31b 11 void HttpsReset(int connectionId)
andrewboyson 166:89e3ce39b31b 12 {
andrewboyson 166:89e3ce39b31b 13 TlsReset(connectionId);
andrewboyson 166:89e3ce39b31b 14 }
andrewboyson 166:89e3ce39b31b 15 bool HttpsResponse(int connectionId, bool clientFinished, int* pWindowSize, uint8_t* pWindow, uint32_t windowPositionInStream)
andrewboyson 166:89e3ce39b31b 16 {
andrewboyson 166:89e3ce39b31b 17 return TlsResponse(connectionId, clientFinished, pWindowSize, pWindow, windowPositionInStream);
andrewboyson 166:89e3ce39b31b 18 }
andrewboyson 166:89e3ce39b31b 19 void HttpsRequest (int connectionId, int windowSize, uint8_t* pWindow, uint32_t windowPositionInStream)
andrewboyson 166:89e3ce39b31b 20 {
andrewboyson 166:89e3ce39b31b 21 TlsRequest(connectionId, windowSize, pWindow, windowPositionInStream);
andrewboyson 166:89e3ce39b31b 22 }