Skip to content

OUIsolutions/BearSslSingle-Unit

Repository files navigation

BearSslSingle-Unit

These Project Generate a Single Unit Compilation for BearrSSL allowing you build projects with a single gcc main.c compilation

Releases

Its The final version of the project as a zip file , to use just extract the zip file and compile with

#include "BearSSLSingleUnit/one.c"

Its the same as the zip file , but amalgamated in one single file, you can include with

#include "BearSSLone.c"

its the "C style" Version, designed if you want to use in more than one compilation unity for use, in your C code

#include "release/BearSSL.h"
``
and compile with
```shell
 gcc -c BearSSL.c -o  BearSSL.o
 gcc main.c BearSSL.o

Its the list of functions and types that had to be renamed to not generate namespace colision in a single unit compilation

Micro Client Example

just for testing , you have in micro_client_sample a micro https client example, you can compile with:

gcc micro_client_sample/main.c -o client.o

and you can test with

 ./client.o example.com 443

Note that these example was taken from the original BearrSSL samples page and the BearSSLTrustedAnchors.h was taken from the oficial arduino Github Organization

Building From Scratch

if you want to build the hole project from scracth you must have a gcc Compiler and CTags git and curl installed and run in linux just type:

 sh pre_build.sh && ./build.outs

You can edit the config/commands files , and pass the CTAGS_COMMAD, GIT_COMMAND CURL_COMMAND const executable location if you want

About

A Single Unit compilation for BearSssl

Resources

License

Stars

Watchers

Forks

Packages

No packages published