Commit Graph

7 Commits

Author SHA1 Message Date
Jacek Sieka cc4e5c54aa
remove non-split api, bump version (#39)
* remove non-split api, bump version
  * 0.1.5 is the last version to support the old ABI
* move cacert to certs/
* add compat shim for abi/cacert
2022-11-21 18:01:21 +01:00
Jacek Sieka c4aec8b664
split decls into separate modules in `bearssl/abi` (#27)
* split `decls.nim` into smaller modules - allows using parts of the ABI
without compiling all of `bearssl`
* deprecate functions with `Br` prefix - there are duplicate exports
both with and without `Br` for the same function and we use both in
consumers like `chronos` and `libp2p`
* fix several cases of incorrectly mapped types
* use `var` for certain arguments that can't be `nil`
* add script to regenerate ABI with `c2nim`
* consistently use `uint` for length (`int` was sometimes used)

The Split likely needs more cleanup work - this is a first cut to get
the idea in place.

In the new layout, `bearssl/abi/` contains "raw" nim mappings while
hand-written helpers are in `bearssl/`.
2022-06-14 19:33:00 +02:00
cheatfate 62414b0bdd
Missed actual fix. 2019-11-06 13:39:43 +02:00
cheatfate 134cadf55b
Move all declarations from root file to decls.nim
Fix some declarations (e.g. size_t and pointer types).
Add Mozilla ca certificates store.
Add SSL error messages.
2019-10-07 20:57:40 +03:00
Yuriy Glukhov a421f9e96e
Fixed output field, changed old types to aliases 2019-10-07 16:15:01 +03:00
Yuriy Glukhov d7d5df8e9a
Added missing bits to support ssl (borrowed from Araq lib) 2019-10-07 15:44:30 +03:00
Yuriy Glukhov 6e9ea2e77a
Initial commit (copied from nim-libp2p) 2019-09-30 21:23:06 +03:00