1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +00:00

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

This commit is contained in:
Thom Wiggers 2019-02-27 17:08:59 +01:00
parent ea19211d21
commit 58aba49ca2
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

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