Re: [PATCH v2 2/7] lib: wrap crypt API to hide errno usage

2021-05-10 Thread Steffen Jaeckel
On 5/10/21 6:27 PM, Simon Glass wrote: > On Mon, 10 May 2021 at 00:19, Steffen Jaeckel > wrote: >> >> In order to prevent using the global errno, replace it with a static >> version and create a wrapper function which returns the error value. >> >> Signed-off-by: Steffen Jaeckel >> --- >> >> (no

Re: [PATCH v2 2/7] lib: wrap crypt API to hide errno usage

2021-05-10 Thread Simon Glass
On Mon, 10 May 2021 at 00:19, Steffen Jaeckel wrote: > > In order to prevent using the global errno, replace it with a static > version and create a wrapper function which returns the error value. > > Signed-off-by: Steffen Jaeckel > --- > > (no changes since v1) > > include/crypt.h |

[PATCH v2 2/7] lib: wrap crypt API to hide errno usage

2021-05-09 Thread Steffen Jaeckel
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value. Signed-off-by: Steffen Jaeckel --- (no changes since v1) include/crypt.h | 3 ++- lib/crypt/alg-sha256.h | 6 -- lib/crypt/alg-sha512.h |