Re: rpki-client remove hidden global

2022-04-19 Thread Claudio Jeker
On Tue, Apr 19, 2022 at 07:35:35PM +0200, Theo Buehler wrote: > On Tue, Apr 19, 2022 at 07:24:04PM +0200, Claudio Jeker wrote: > > I tripped over this and this optimisation hurts more then it helps. > > So lets just create a new EVP_ENCODE_CTX for every base64_decode() > > call and cleanup at the e

Re: rpki-client remove hidden global

2022-04-19 Thread Theo Buehler
On Tue, Apr 19, 2022 at 07:24:04PM +0200, Claudio Jeker wrote: > I tripped over this and this optimisation hurts more then it helps. > So lets just create a new EVP_ENCODE_CTX for every base64_decode() > call and cleanup at the end of the call. Should malloc() failure and EVP_ENCODE_CTX_new() fail

rpki-client remove hidden global

2022-04-19 Thread Claudio Jeker
I tripped over this and this optimisation hurts more then it helps. So lets just create a new EVP_ENCODE_CTX for every base64_decode() call and cleanup at the end of the call. -- :wq Claudio Index: encoding.c === RCS file: /cvs/src/