Skip to content

Conversation

@OldManYellsAtCloud
Copy link

@OldManYellsAtCloud OldManYellsAtCloud commented Aug 12, 2025

  • Version of iperf3 (or development branch, such as master or
    3.1-STABLE) to which this pull request applies:

master

  • Issues fixed (if any):

None

  • Brief description of code changes (suitable for use as a commit message):

The return values of RSA_private_decrypt() and RSA_public_encrypt() calls are stored in unsigned variables, however upon error these functions return -1.

This PR changes these variables' types to a signed integer type. Also, some tab-indentations were mixed among spaces, cleaned them up also.

The returns values of RSA_public_encrypt and RSA_private_decrypt calls
are stored in unsigned types. These functions return -1 upon error.

These return values are checked after the call if they are negative, but
since they are stored in unsigned type, they are lost.

To avoid this, change the type of encryptedtext_len and plaintext_len to
a signed one.

Also, change some tab indents to space.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
@OldManYellsAtCloud OldManYellsAtCloud changed the title iperf_auth: don't throw away RSA_private_decrypt error iperf_auth: keep RSA_private_decrypt and RSA_public_encrypt errors Aug 13, 2025
@swlars
Copy link
Contributor

swlars commented Aug 29, 2025

Thanks for the pull request! This looks pretty straightforward, so we'll probably get to it soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants