Name Date Size #Lines LOC

..--

README.txtH A D18-Mar-20191.4 KiB3726

cert-ee-ec+rsa.pemH A D18-Mar-2019906 1514

cert-ee-ec.pemH A D18-Mar-2019646 1110

cert-ee-rsa.pemH A D18-Mar-20191.2 KiB1817

cert-ica-ec.pemH A D18-Mar-2019634 1110

cert-ica-rsa.pemH A D18-Mar-20191.1 KiB1817

cert-root-ec.pemH A D18-Mar-2019593 109

cert-root-rsa.pemH A D18-Mar-20191.1 KiB1716

chain-ec+rsa.hH A D18-Mar-201910.2 KiB167132

chain-ec.hH A D18-Mar-20196.7 KiB11883

chain-rsa.hH A D18-Mar-201911.4 KiB184149

client_basic.cH A D18-Mar-201911 KiB381229

custom_profile.cH A D18-Mar-201922.4 KiB602148

key-ec.hH A D18-Mar-20191.5 KiB4110

key-ee-ec.pemH A D18-Mar-2019227 65

key-ee-rsa.pemH A D18-Mar-20191.6 KiB2423

key-ica-ec.pemH A D18-Mar-2019227 65

key-ica-rsa.pemH A D18-Mar-20191.6 KiB2423

key-root-ec.pemH A D18-Mar-2019227 65

key-root-rsa.pemH A D18-Mar-20191.6 KiB2423

key-rsa.hH A D18-Mar-20195.5 KiB10974

server_basic.cH A D18-Mar-201910.6 KiB437286

README.txt

1This directory contains sample code for using BearSSL.
2
3client_basic.c
4
5   A sample client code, that connects to a server, performs a SSL
6   handshake, sends a basic HTTP GET request, and dumps the complete
7   answer on stdout.
8
9   Compile it against BearSSL headers (in the ../inc directory) and
10   library (libbearssl.a). This code will validate the server
11   certificate against two hardcoded trust anchors.
12
13server_basic.c
14
15   A sample SSL server, that serves one client at a time. It reads a
16   single HTTP request (that it does not really parse; it just waits for
17   the two successive line endings that mark the end of the request),
18   and pushes a basic response.
19
20   Compile it against BearSSL headers (in the ../inc directory) and
21   library (libbearssl.a). Depending on compilation options (see the
22   code), it will use one of several certificate chains, that exercise
23   various combinations of RSA and EC keys and signatures. These
24   certificate chains link to the trust anchors that are hardcoded
25   in client_basic.c, so the sample client and the sample server can
26   be tested against each other.
27
28custom_profile.c
29
30   A sample C source file that shows how to write your own client or
31   server profiles (selections of cipher suites and algorithms).
32
33
34The .pem files are certificate and keys corresponding to the chains
35and anchors used by the sample client and server. They are provided
36for reference only; these files are not used by the examples.
37