diff options
author | tb <> | 2022-11-23 22:52:25 +0000 |
---|---|---|
committer | tb <> | 2022-11-23 22:52:25 +0000 |
commit | cfc8789bbebce5f8164aea5a38160511984616df (patch) | |
tree | f222442c0cd7ed39c83d7237381ca535f3f53360 /src/regress/lib | |
parent | 8fe2402158d1795d8f8a84b4f2dc59e1790a1a09 (diff) | |
download | openbsd-cfc8789bbebce5f8164aea5a38160511984616df.tar.gz openbsd-cfc8789bbebce5f8164aea5a38160511984616df.tar.bz2 openbsd-cfc8789bbebce5f8164aea5a38160511984616df.zip |
Add void casts since gcc 4.2.1 on sparc64 doesn't like the missing return
checks for BIO_reset().
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libcrypto/evp/evp_ecx_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/evp/evp_ecx_test.c b/src/regress/lib/libcrypto/evp/evp_ecx_test.c index e847d8de06..c0beb55425 100644 --- a/src/regress/lib/libcrypto/evp/evp_ecx_test.c +++ b/src/regress/lib/libcrypto/evp/evp_ecx_test.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_ecx_test.c,v 1.3 2022/11/23 07:25:01 tb Exp $ */ | 1 | /* $OpenBSD: evp_ecx_test.c,v 1.4 2022/11/23 22:52:25 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -337,7 +337,7 @@ ecx_ed25519_raw_key_test(void) | |||
337 | goto failure; | 337 | goto failure; |
338 | } | 338 | } |
339 | 339 | ||
340 | BIO_reset(bio); | 340 | (void)BIO_reset(bio); |
341 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { | 341 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { |
342 | fprintf(stderr, "FAIL: failed to write ED25519 public to PEM\n"); | 342 | fprintf(stderr, "FAIL: failed to write ED25519 public to PEM\n"); |
343 | goto failure; | 343 | goto failure; |
@@ -361,7 +361,7 @@ ecx_ed25519_raw_key_test(void) | |||
361 | fprintf(stderr, "FAIL: PKEY from raw public key failed"); | 361 | fprintf(stderr, "FAIL: PKEY from raw public key failed"); |
362 | goto failure; | 362 | goto failure; |
363 | } | 363 | } |
364 | BIO_reset(bio); | 364 | (void)BIO_reset(bio); |
365 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { | 365 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { |
366 | fprintf(stderr, "FAIL: failed to write ED25519 public to PEM\n"); | 366 | fprintf(stderr, "FAIL: failed to write ED25519 public to PEM\n"); |
367 | goto failure; | 367 | goto failure; |
@@ -769,7 +769,7 @@ ecx_x25519_raw_key_test(void) | |||
769 | goto failure; | 769 | goto failure; |
770 | } | 770 | } |
771 | 771 | ||
772 | BIO_reset(bio); | 772 | (void)BIO_reset(bio); |
773 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { | 773 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { |
774 | fprintf(stderr, "FAIL: failed to write X25519 public to PEM\n"); | 774 | fprintf(stderr, "FAIL: failed to write X25519 public to PEM\n"); |
775 | goto failure; | 775 | goto failure; |
@@ -791,7 +791,7 @@ ecx_x25519_raw_key_test(void) | |||
791 | fprintf(stderr, "FAIL: PKEY from raw public key failed"); | 791 | fprintf(stderr, "FAIL: PKEY from raw public key failed"); |
792 | goto failure; | 792 | goto failure; |
793 | } | 793 | } |
794 | BIO_reset(bio); | 794 | (void)BIO_reset(bio); |
795 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { | 795 | if (!PEM_write_bio_PUBKEY(bio, pkey)) { |
796 | fprintf(stderr, "FAIL: failed to write X25519 public to PEM\n"); | 796 | fprintf(stderr, "FAIL: failed to write X25519 public to PEM\n"); |
797 | goto failure; | 797 | goto failure; |