Re: [Openvpn-devel] [PATCH v3 2/9] Add crypto_pem_{encode, decode}()

2018-07-22 Thread Antonio Quartulli
Hi, On 22/07/18 18:06, Steffan Karger wrote: > From: Steffan Karger > > Needed for tls-crypt-v2, but isolated enough to be reviewed as a separate > patch. > > The encode API allocates memory, because it fits our typical gc-oriented > code pattern and the caller does not have to do multiple call

[Openvpn-devel] [PATCH v3 2/9] Add crypto_pem_{encode,decode}()

2018-07-22 Thread Steffan Karger
From: Steffan Karger Needed for tls-crypt-v2, but isolated enough to be reviewed as a separate patch. The encode API allocates memory, because it fits our typical gc-oriented code pattern and the caller does not have to do multiple calls or calculations to determine the required destination buff