Update BearSSL to latest version.

Update CA certificates to 2020-01-01.
Bump version to 0.1.4.
This commit is contained in:
cheatfate 2020-02-14 12:29:54 +02:00
parent 02c575c844
commit 8a9503b6df
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
4 changed files with 508 additions and 534 deletions

View File

@ -1,12 +1,8 @@
# Package
version = "0.1.3"
version = "0.1.4"
author = "Status Research & Development GmbH"
description = "BearSSL wrapper"
license = "MIT or Apache License 2.0"
# Dependencies
requires "nim >= 0.19.6"

View File

@ -9,8 +9,8 @@
## This module provides access to Mozilla's CA certificate store in PEM format.
## This certificate store was downloaded from
## https://curl.haxx.se/ca/cacert-2019-08-28.pem
## And converted to C header using ``brssl ta cacert cacert-2019-08-28.pem``.
## https://curl.haxx.se/ca/cacert-2020-01-01.pem
## And converted to C header using ``brssl ta cacert-2020-01-01.pem > cacert``.
from decls import X509TrustAnchor
from strutils import rsplit
from os import DirSep
@ -20,6 +20,6 @@ const CurrentPath = currentSourcePath.rsplit(DirSep, 1)[0]
{.passC: "-I" & CurrentPath & DirSep & "certs".}
var MozillaTrustAnchors* {.
importc: "TAs", header: "cacert20190828.h".}: array[139, X509TrustAnchor]
importc: "TAs", header: "cacert20200101.h".}: array[138, X509TrustAnchor]
var MozillaTrustAnchorsCount* {.
importc: "TAs_NUM", header: "cacert20190828.h".}: cint
importc: "TAs_NUM", header: "cacert20200101.h".}: cint

@ -1 +1 @@
Subproject commit c1bb5356bb52984178c269886b6835b532ef30c2
Subproject commit acc70b1be60a6f321e2da618cd35d901b1a598a4