From a06d52906db423ab5f2bf6991b85f36f9401341c Mon Sep 17 00:00:00 2001
From: Laurent Bercot
s6-networking
When reading an object into memory, sbearssl stores all
the bytes of the object in a
-stralloc,
+stralloc,
and the sbearssl_* structures contain indices of bytes in that
stralloc. That allows the structures to remain valid even when the stralloc
contents get reallocated and move to some other place in the heap. After
@@ -235,10 +235,10 @@ will perform the PEM decoding for you.
Decodes a PEM object, reading from the
-buffer
+buffer
in *b. The decoded bytes are appended to *sa.
list points to a
-genalloc
+genalloc
containing objects of type sbearssl_pemobject.
One sbearssl_pemobject is appended to the genalloc per PEM entity
decoded from the byte stream read from the buffer.
@@ -258,7 +258,7 @@ obtained with the sbearssl_error_str() function.
Decodes a PEM object from the len bytes pointed to by s.
The decoded bytes are appended to *sa.
list points to a
-genalloc
+genalloc
containing objects of type sbearssl_pemobject.
One sbearssl_pemobject is appended to the genalloc per PEM entity
found in the bytes in s.
@@ -295,7 +295,7 @@ The indices in l must refer to data stored in the string s.
Reads one or more certificates from the file named fn and appends
-them to the genalloc
+them to the genalloc
in *list, which is a dynamically growing list of
sbearssl_cert structures. The bytes of the
(maybe PEM-decoded, but still DER-encoded) certificate are
@@ -331,7 +331,7 @@ obtained with the sbearssl_error_str() function.
Reads one or more PEM-encoded certificates from the file named
fn and appends them to the
-genalloc
+genalloc
in *list, which is a dynamically growing list of
sbearssl_cert structures. The bytes of the PEM-decoded (but
still DER-encoded) certificates are appended to the stralloc
@@ -384,11 +384,11 @@ The indices in l must refer to data stored in the string s.
Reads a set of trust anchors from a PEM file named fn
which must contain a list of (intermediate or) root CA certificates.
The trust anchors are appended to the
-genalloc
+genalloc
in *list, which is a dynamically growing list of
sbearssl_ta structures. The contents of the trust anchors
are appended to *sa, which is a
-stralloc
+stralloc
used for storage.
-Software
-skarnet.org
+Software
+skarnet.org
The sbearssl library interface
@@ -65,7 +65,7 @@ address this.
Sets the validation time for the X.509 context in *ctx to the absolute time contained in *t, which is a -tai_t. +tai_t. Returns 1 if it succeeds, or 0 if it fails - probably because *t does not represent a valid time.
@@ -466,7 +466,7 @@ because *t does not represent a valid time.Same as the above function, except the time is given as a -tain_t, +tain_t, i.e. a tai_t plus nanoseconds (which are simply ignored).
@@ -515,7 +515,7 @@ know in advance how many bytes it should get. Modern application protocols should all work with EOF.