gcrypt-example icon indicating copy to clipboard operation
gcrypt-example copied to clipboard

gcrypt_init() error handling

Open ddowling opened this issue 11 years ago • 1 comments

Hi,

In gcrypt_init() I think all of the "err &=" constructs should be "err |=" instead. err starts off as 0 and will remain 0 if an error occurs or not. Thanks for the example code. It got me started with the libgcrypt library coding.

ddowling avatar Jan 03 '15 01:01 ddowling

Thanks for pointing this out! It should be fixed by commit 7008b9.

vedantk avatar Jan 07 '15 22:01 vedantk