diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-06-23 14:00:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 14:00:36 -0700 |
commit | 00c20cb15469338b029fbd05cf779e1d33859f49 (patch) | |
tree | 0d51509068b5512783434084fe597b8db0d7f433 /minica.pem | |
parent | 02d9022dbc14d6d05bb5aab8b132a16f6c6d22c1 (diff) |
Add test server and use with test client (#111)
This allows us to test the server side of the code as well as the client,
and also to make our tests more self-contained.
This splits out a lot of functions and some structs into common.[ch],
and moves all the C test code into tests/. To have a somewhat more
realistic test, the server keeps connections alive after a request, and
so the client has to judge the end of a response by a Content-Length
header. That in turn required the introduction of a growable buffer
to hold the headers, and some basic header parsing. So far only the
client parses Content-Length, and neither the client nor the server
fully supports connection reuse, but the scaffolding is there.
The server uses a local root, and the client is configured to trust that root.
Diffstat (limited to 'minica.pem')
-rw-r--r-- | minica.pem | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/minica.pem b/minica.pem new file mode 100644 index 0000000..7c22858 --- /dev/null +++ b/minica.pem @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDSzCCAjOgAwIBAgIIPtPF/Ma9IfIwDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE +AxMVbWluaWNhIHJvb3QgY2EgM2VkM2M1MCAXDTIxMDMyMDA1MTQwOVoYDzIxMjEw +MzIwMDYxNDA5WjAgMR4wHAYDVQQDExVtaW5pY2Egcm9vdCBjYSAzZWQzYzUwggEi +MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDTNc7pfeQw6wsffdXKG4rSpaKS ++bOLQup2GAwHJP85kU2Kped4jBv1s+ZNFJECOSt4ZtA3OtZd2EQiTTsyeYUxFEL7 +5vRbZK2rfxIarvCs1CSINsLrIJPb79/m12SIPNZSPc3bwimnhFF7YI8dvUy3x8QO +VB/JAQpkUXf+JIiLYCUk+lxE2SVU2brbs30idZCMLalBNNn+cYMRT4PDZ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