Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/better null checking #50

Merged
merged 13 commits into from
Nov 30, 2022
Prev Previous commit
Next Next commit
fix whitespace
  • Loading branch information
michelp committed Nov 29, 2022
commit 500bc10ab2fc0f775fd6bc2f9834d24d74a8ea3f
4 changes: 2 additions & 2 deletions test/sign.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SELECT throws_ok($$select crypto_sign_seed_new_keypair(NULL)$$, '22000',
SELECT public, secret FROM crypto_sign_new_keypair() \gset sign_

SELECT crypto_sign('bob is your uncle', :'sign_secret') signed \gset

SELECT throws_ok($$select crypto_sign('bob is your uncle', 's')$$,
'22000', 'pgsodium_crypto_sign: invalid secret key', 'crypto_sign invalid key');

Expand All @@ -25,7 +25,7 @@ SELECT throws_ok($$select crypto_sign(NULL, 'bad')$$,

SELECT throws_ok($$select crypto_sign('bad', NULL)$$,
'22000', 'pgsodium_crypto_sign: secretkey cannot be NULL', 'crypto_sign null key');

SELECT is(crypto_sign_open(:'signed', :'sign_public'),
'bob is your uncle', 'crypto_sign_open');

Expand Down