BearSSL/samples
Thomas Pornin 52cc1a1a18 Small fix on sample server code (displaying of IPv6 addresses). 2017-06-08 00:51:55 +02:00
..
README.txt Initial import. 2016-11-02 19:01:13 -04:00
cert-ee-ec+rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
cert-ee-ec.pem Initial import. 2016-11-02 19:01:13 -04:00
cert-ee-rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
cert-ica-ec.pem Initial import. 2016-11-02 19:01:13 -04:00
cert-ica-rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
cert-root-ec.pem Initial import. 2016-11-02 19:01:13 -04:00
cert-root-rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
chain-ec+rsa.h Initial import. 2016-11-02 19:01:13 -04:00
chain-ec.h Initial import. 2016-11-02 19:01:13 -04:00
chain-rsa.h Initial import. 2016-11-02 19:01:13 -04:00
client_basic.c Added ChaCha20+Poly1305 support (stand-alone, cipher suites). 2016-12-13 20:01:19 +01:00
custom_profile.c Cosmetic fixes in comments. 2017-01-30 00:32:21 +01:00
key-ec.h Initial import. 2016-11-02 19:01:13 -04:00
key-ee-ec.pem Initial import. 2016-11-02 19:01:13 -04:00
key-ee-rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
key-ica-ec.pem Initial import. 2016-11-02 19:01:13 -04:00
key-ica-rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
key-root-ec.pem Initial import. 2016-11-02 19:01:13 -04:00
key-root-rsa.pem Initial import. 2016-11-02 19:01:13 -04:00
key-rsa.h Initial import. 2016-11-02 19:01:13 -04:00
server_basic.c Small fix on sample server code (displaying of IPv6 addresses). 2017-06-08 00:51:55 +02:00

README.txt

This directory contains sample code for using BearSSL.

client_basic.c

   A sample client code, that connects to a server, performs a SSL
   handshake, sends a basic HTTP GET request, and dumps the complete
   answer on stdout.

   Compile it against BearSSL headers (in the ../inc directory) and
   library (libbearssl.a). This code will validate the server
   certificate against two hardcoded trust anchors.

server_basic.c

   A sample SSL server, that serves one client at a time. It reads a
   single HTTP request (that it does not really parse; it just waits for
   the two successive line endings that mark the end of the request),
   and pushes a basic response.

   Compile it against BearSSL headers (in the ../inc directory) and
   library (libbearssl.a). Depending on compilation options (see the
   code), it will use one of several certificate chains, that exercise
   various combinations of RSA and EC keys and signatures. These
   certificate chains link to the trust anchors that are hardcoded
   in client_basic.c, so the sample client and the sample server can
   be tested against each other.

custom_profile.c

   A sample C source file that shows how to write your own client or
   server profiles (selections of cipher suites and algorithms).


The .pem files are certificate and keys corresponding to the chains
and anchors used by the sample client and server. They are provided
for reference only; these files are not used by the examples.