Re: [PATCH] MINOR: crypto: Add digest and hmac converters

2018-08-21 Thread Patrick Hemmer
On 2018/6/17 14:02, Baptiste wrote: > > > Le dim. 17 juin 2018 à 14:10, Patrick Gansterer > a écrit : > > > > On 17 Jun 2018, at 13:36, Baptiste > wrote: > > > > Can they be used to validate oauth tokens too? > > Depends on

Re: [PATCH] MINOR: crypto: Add digest and hmac converters

2018-06-17 Thread Baptiste
Le dim. 17 juin 2018 à 14:10, Patrick Gansterer a écrit : > > > On 17 Jun 2018, at 13:36, Baptiste wrote: > > > > Can they be used to validate oauth tokens too? > > Depends on the implementation of the tokens, but if they are HMACSHA256 > signed JWT, it’s very easy to validate them in a lua

Re: [PATCH] MINOR: crypto: Add digest and hmac converters

2018-06-17 Thread Patrick Gansterer
> On 17 Jun 2018, at 13:36, Baptiste wrote: > > Can they be used to validate oauth tokens too? Depends on the implementation of the tokens, but if they are HMACSHA256 signed JWT, it’s very easy to validate them in a lua script now. > Note: maybe an update for configuration.txt would be

[PATCH] MINOR: crypto: Add digest and hmac converters

2018-06-17 Thread Patrick Gansterer
Make the digest and HMAC function of OpenSSL accesable to the user via converters. e.g. They can be used to sign and validate cookies. --- Makefile | 2 +- doc/configuration.txt | 9 + src/crypto.c | 84 +++ 3 files changed, 94

Re: [PATCH] MINOR: crypto: Add digest and hmac converters

2018-06-17 Thread Baptiste
On Sun, Jun 17, 2018 at 11:21 AM, Patrick Gansterer wrote: > Make the digest and HMAC function of OpenSSL accesable to the user via > converters. e.g. They can be used to sign and validate cookies. > --- > Makefile | 2 +- > src/crypto.c | 84

[PATCH] MINOR: crypto: Add digest and hmac converters

2018-06-17 Thread Patrick Gansterer
Make the digest and HMAC function of OpenSSL accesable to the user via converters. e.g. They can be used to sign and validate cookies. --- Makefile | 2 +- src/crypto.c | 84 2 files changed, 85 insertions(+), 1 deletion(-) create mode