Build failure in iperf 3.22: undefined `errreturn` label in `decrypt_rsa_message()` if using openssl < 3

Open Beginner friendly
#2,101 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c

Research direction

Start in iperf_auth.c at decrypt_rsa_message() and inspect the conditional compilation around the errreturn label and goto. Reproduce the build with an OpenSSL version below 3, then check the build with OpenSSL 3 as well. Done means both builds compile without the undefined-label error.

Written by the indexing model from the issue text.

Description

if using legacy openssl version, iperf 3.22 fails to compile with the following error:

iperf_auth.c: In function 'decrypt_rsa_message': iperf_auth.c:343:9: error: label 'errreturn' used but not defined

The goto errreturn statement is outside the conditional compilation block, while the corresponding errreturn: label is only defined under:

#if OPENSSL_VERSION_MAJOR >= 3

Dominant language
C
Stars
8.9k
Forks
1.5k
Avg merge
5d 11h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from esnet/iperf

All issues in esnet/iperf

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.