Commit Graph

14 Commits

Author SHA1 Message Date
diegomrsantos d4e2f555c8
gcc 14 support (#62)
* rsaKeygenGetDefault test

* add ubuntu 24 and gcc 14 to ci

* use PrngClassPointerConst for rsa keygen

* fix test_brssl

* add comment about ubuntu 24

* define and use ConstPtrPtrHashClass

* remove previous ecKeygen

* remove previous x509NoanchorInit

* improve test

* add ecKeygen test

* add x509NoanchorInit test

* remove commented code

* rename target to linux-gcc-14

* test already exists

* fix tests
2024-07-18 18:50:24 +03:00
Eugene Kabanov 554b464b34
Fix gcc-14 issues part 2. (#61)
* Fix recently discovered nim-2.0 gcc-14 issues.

* One more place to fix.
2024-06-27 01:42:04 +03:00
Eugene Kabanov ff0b47ed80
Fix GCC-14 [-Wincompatible-pointer-types] issue. (#58)
* Fix GCC-14 [-Wincompatible-pointer-types] issue.

* Add more fixes.

* More fixes.
2024-06-02 06:42:27 +03:00
jangko d55d3a86d7
Switch to llvm-mingw in Windows CI 2023-09-14 10:49:20 +07:00
Jacek Sieka 917b7274f9
work around C++ linking issue (#50)
* test c++ support, work around linking issue

* fix imports, don't test C++ after all
2023-08-16 12:47:15 +02:00
Yuriy Glukhov acf9645e32
Fixed hmacSize definition (#44) 2023-01-17 11:49:12 +01:00
Jacek Sieka a647994910
bump upstream (#41)
* fix carry propagation bug
* improved c++ compat
* new date range validation api
2022-12-08 21:34:21 +01:00
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 5159f7e385
update nimble build (#38)
* update nimble build

* remove arc tests

orc is default on devel
2022-11-21 11:07:33 +01:00
Jacek Sieka 0e5fa149b6
update cacert, turn it into C file (#37)
Makes the certificates compile a single time instead of being included
all over - also bump to a more recent version
2022-11-18 08:32:41 +01:00
Jacek Sieka 25009951ff
rsa: import intx (#35) 2022-07-18 07:17:12 +02:00
Jacek Sieka 1e9b702650
brssl: c2nim-generated spelling (#33)
* generate brssl.nim with regenerate.sh as well
2022-07-07 18:47:59 +02:00
Jacek Sieka 2631f8473d
cross-compile-compatible paths (#31) 2022-06-24 20:09:06 +02: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