Browse Source

take out assignment in conditional because windows is not happy about it

master
Thom Wiggers 5 years ago
parent
commit
58aba49ca2
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/crypto_sign/functest.c

+ 3
- 3
test/crypto_sign/functest.c View File

@@ -114,9 +114,9 @@ static int test_wrong_pk(void) {

// By relying on m == sm we prevent having to allocate CRYPTO_BYTES
// twice
if (!(returncode = crypto_sign_open(sm, &mlen, sm, smlen, pk2))) {
printf("ERROR Signature did verify correctly under wrong public "
"key!\n");
returncode = crypto_sign_open(sm, &mlen, sm, smlen, pk2);
if (!returncode) {
printf("ERROR Signature did verify correctly under wrong public key!\n");
if (returncode > 0) {
puts("ERROR return code should be < 0");
}


Loading…
Cancel
Save