diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-10-13 19:18:47 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-10-13 19:18:47 +0000 |
commit | 09d28e3088ecc8435b25bda49b5be52f0c453ba9 (patch) | |
tree | 689f376ee415da714602af4306747d23ab0b207a /doc/libsbearssl | |
parent | 9fb6fb9f889e758afc59cfc33b4f8cf735d3523d (diff) | |
download | s6-networking-09d28e3088ecc8435b25bda49b5be52f0c453ba9.tar.xz |
Doc fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/libsbearssl')
-rw-r--r-- | doc/libsbearssl/index.html | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/libsbearssl/index.html b/doc/libsbearssl/index.html index 0c53c14..e9e7f88 100644 --- a/doc/libsbearssl/index.html +++ b/doc/libsbearssl/index.html @@ -452,7 +452,23 @@ interpreted via this function. looks like a DER-encoded object. Returns 1 if it does and 0 otherwise. </p> -<h4> <code> int sbearssl_x509_minimal_set_tai (br_x509_minimal_context *ctx, tai_t t) </code> </h4> +<h4> <code> int sbearssl_tai_from_dayseconds (tai *t, uint32_t days, uint32_t seconds) </code> </h4> + +<p> + Makes a TAI absolute time from the date given in days and seconds as +provided in an x509 certificate. Returns 1 on success and 0 on failure +(which probably means days/seconds don't encode a valid date). +</p> + +<h4> <code> int sbearssl_dayseconds_from_tai (uint32_t *days, uint32_t *seconds, tai const *t) </code> </h4> + +<p> + Compute suitable days and seconds, for an x509 certificate, from an +absolute TAI date. Returns 1 on success and 0 on failure (which probably +means the given date doesn't fit the days/seconds format). +</p> + +<h4> <code> int sbearssl_x509_minimal_set_tai (br_x509_minimal_context *ctx, tai const *t) </code> </h4> <p> Sets the validation time for the X.509 context in *<em>ctx</em> to @@ -462,7 +478,7 @@ Returns 1 if it succeeds, or 0 if it fails - probably because *<em>t</em> does not represent a valid time. </p> -<h4> <code> int sbearssl_x509_minimal_set_tain (br_x509_minimal_context *ctx, tain_t a) </code> </h4> +<h4> <code> int sbearssl_x509_minimal_set_tain (br_x509_minimal_context *ctx, tain const *a) </code> </h4> <p> Same as the above function, except the time is given as a @@ -470,7 +486,7 @@ because *<em>t</em> does not represent a valid time. i.e. a <tt>tai_t</tt> plus nanoseconds (which are simply ignored). </p> -<h4> <code> void sbearssl_drop () </code> </h4> +<h4> <code> void sbearssl_drop (void) </code> </h4> <p> If the process is running as root, then this function drops its privileges @@ -584,7 +600,7 @@ exits 100 with an error message. order: the fd reading from the application (cleartext), the fd writing to the application (cleartext), the fd reading from the network, the fd writing to the network. </li> - <li> <tt>preoptions : a bitfield. + <li> <tt>preoptions</tt> : a bitfield. <ul> <li> Bit 0: if clear, no client authentication is performed. If set, the <tt>CERTFILE</tt> and <tt>KEYFILE</tt> environment variables are read, @@ -593,7 +609,7 @@ they must contain the path to a valid client certificate and private key server for client authentication. <strong>This feature is currently unsupported and will not work; leave that bit clear for now.</strong> </li> </ul> </li> - <li> <tt>options : a bitfield, which will be passed to + <li> <tt>options</tt> : a bitfield, which will be passed to <tt>sbearssl_run()</tt>. <ul> <li> Bit 0: if clear, no close_notify is performed and the engine |