A simple library to support serving https.
Dependents: oldheating gps motorhome heating
tls/tls.c@8:5e66a6b4b38c, 2019-09-07 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Sep 07 18:56:01 2019 +0000
- Revision:
- 8:5e66a6b4b38c
- Parent:
- 3:e6a2c4579a4d
- Child:
- 9:f354b4859b0b
Got TLS working as far as being able to verify finished message itself and to verify the MAC on the finished and the subsequent alert message.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 1:9c66a551a67e | 1 | #include <stdbool.h> |
andrewboyson | 3:e6a2c4579a4d | 2 | #include "ser-cer.h" |
andrewboyson | 3:e6a2c4579a4d | 3 | #include "pri-key.h" |
andrewboyson | 3:e6a2c4579a4d | 4 | #include "tls-prf.h" |
andrewboyson | 8:5e66a6b4b38c | 5 | #include "tls.h" |
andrewboyson | 1:9c66a551a67e | 6 | |
andrewboyson | 1:9c66a551a67e | 7 | bool TlsTrace = true; |
andrewboyson | 1:9c66a551a67e | 8 | |
andrewboyson | 8:5e66a6b4b38c | 9 | void TlsMain() |
andrewboyson | 8:5e66a6b4b38c | 10 | { |
andrewboyson | 8:5e66a6b4b38c | 11 | TlsAsync(); |
andrewboyson | 8:5e66a6b4b38c | 12 | } |
andrewboyson | 1:9c66a551a67e | 13 | void TlsInit() |
andrewboyson | 1:9c66a551a67e | 14 | { |
andrewboyson | 1:9c66a551a67e | 15 | SerCerInit(); |
andrewboyson | 1:9c66a551a67e | 16 | PriKeyInit(); |
andrewboyson | 1:9c66a551a67e | 17 | TlsPrfTest(); |
andrewboyson | 1:9c66a551a67e | 18 | } |