A simple library to support serving https.
Dependents: oldheating gps motorhome heating
tls/tls.c@24:cb43290fc439, 2020-04-01 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Apr 01 12:48:52 2020 +0000
- Revision:
- 24:cb43290fc439
- Parent:
- 21:a6d6e26dd742
Added check so that if the client closes the TCP connection before the TLS connection is established then respond that we have finished and the TCP connection is to be closed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 1:9c66a551a67e | 1 | #include <stdbool.h> |
andrewboyson | 8:5e66a6b4b38c | 2 | #include "tls.h" |
andrewboyson | 21:a6d6e26dd742 | 3 | #include "tls-connection.h" |
andrewboyson | 21:a6d6e26dd742 | 4 | #include "http.h" |
andrewboyson | 1:9c66a551a67e | 5 | |
andrewboyson | 21:a6d6e26dd742 | 6 | bool TlsTrace = false; |
andrewboyson | 1:9c66a551a67e | 7 | |
andrewboyson | 8:5e66a6b4b38c | 8 | void TlsMain() |
andrewboyson | 8:5e66a6b4b38c | 9 | { |
andrewboyson | 21:a6d6e26dd742 | 10 | TlsRequestMain(); |
andrewboyson | 8:5e66a6b4b38c | 11 | } |
andrewboyson | 1:9c66a551a67e | 12 | void TlsInit() |
andrewboyson | 1:9c66a551a67e | 13 | { |
andrewboyson | 1:9c66a551a67e | 14 | } |
andrewboyson | 21:a6d6e26dd742 | 15 | void TlsReset(int connectionId) |
andrewboyson | 21:a6d6e26dd742 | 16 | { |
andrewboyson | 21:a6d6e26dd742 | 17 | TlsConnectionReset(connectionId); |
andrewboyson | 21:a6d6e26dd742 | 18 | HttpReset(connectionId); |
andrewboyson | 21:a6d6e26dd742 | 19 | } |