History log of /iperf/src/iperf_auth.c (Results 1 – 18 of 18)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 3.11
# e919e8c2 03-Sep-2021 a1346054 <[email protected]>

trim excess whitespace


# 50d6cce6 03-Sep-2021 a1346054 <[email protected]>

fix spelling


Revision tags: 3.10.1, 3.10
# bd143779 12-Nov-2020 ralcini <[email protected]>

Configurable value for time drift between client/server for authentication request issue1065 (#1070)

* Issue 1065

* feat: Allow to configure a custom value for time drift between client/server fo

Configurable value for time drift between client/server for authentication request issue1065 (#1070)

* Issue 1065

* feat: Allow to configure a custom value for time drift between client/server for authentication

The use case is to support scenarios where it's not possible to enforce sync between client and server times.

* enh: drift redefined with skew

Co-authored-by: Francesco Marino <[email protected]>

show more ...


# 2a1309fa 30-Sep-2020 A. Wilcox <[email protected]>

fix[auth]: Ensure 64-bit time_t works on 32-bit systems (#1056)

On a 32-bit PowerPC Linux system using musl libc (with 64-bit time_t),
the t_auth test fails because `long` is not the same type as `

fix[auth]: Ensure 64-bit time_t works on 32-bit systems (#1056)

On a 32-bit PowerPC Linux system using musl libc (with 64-bit time_t),
the t_auth test fails because `long` is not the same type as `time_t`.

This patch uses an int64_t temporary value, which can be truncated to
32-bit if necessary.

show more ...


Revision tags: 3.9
# 80b7c7b2 04-Aug-2020 Bruce A. Mah <[email protected]>

fix: Plug various minor memory leaks (#1033)

* fix: Fix memory leaks related to --logfile.
* fix: Fix memory leaks related to loading RSA keys.
* fix: Fix some memory leaks in failure cases in the

fix: Plug various minor memory leaks (#1033)

* fix: Fix memory leaks related to --logfile.
* fix: Fix memory leaks related to loading RSA keys.
* fix: Fix some memory leaks in failure cases in the iperf3 client.

Fixes #1023.

show more ...


# 3888e044 12-Jun-2020 David Bar-On <[email protected]>

chore: Change applicable function arguments from 'char *' to 'const char *' (#1006)

Fixes #946. Should not present any functional changes.


Revision tags: 3.8.1, 3.8
# 99b79f21 22-May-2020 Bruce A. Mah <[email protected]>

fix: Fix stupid memory leak. (#1005)

Pointed out by @oleh-yudin-ring. Follow-up to #996.


# 06e3f08d 20-May-2020 Bruce A. Mah <[email protected]>

fix(auth): Fix a potential buffer overflow in iperf3 client.
This condition was only possible when configuration authentication
via the libiperf API.

While here, also fix a few other sundry issues:

fix(auth): Fix a potential buffer overflow in iperf3 client.
This condition was only possible when configuration authentication
via the libiperf API.

While here, also fix a few other sundry issues:

* Remove arbitrary length limits on username and password.

* Improved error handling.

* Updated error messages for readability.

* Fixed minor typo in some identifiers.

Fixes #996.

show more ...


# bb115306 07-Jan-2020 Oleh Yudin <[email protected]>

Fix memory leaks for RSA key setters (#949)

Originally discussed in #940.


# 22da02dc 01-Oct-2019 Allen Flickinger <[email protected]>

enh: Add server authentication API functions (#911)


Revision tags: 3.7
# c4bd56f3 18-Jun-2019 Bruce A. Mah <[email protected]>

fix: Fix off-by-one memory overwrite crash and memory leaks (#887)

The base64 decode will crash on musl c-library builds for OpenWRT
due to the write of the '\0' past the end of the allocated buffe

fix: Fix off-by-one memory overwrite crash and memory leaks (#887)

The base64 decode will crash on musl c-library builds for OpenWRT
due to the write of the '\0' past the end of the allocated buffer.
Fix other various memory leaks on the authentication code paths.
Fix some memory-free library calls into OpenSSL.

Based heavily on PR #881 originally submitted by @acmay,
with comments from @ralcini.

show more ...


Revision tags: 3.6
# e28f12c7 27-Apr-2018 ralcini <[email protected]>

Add authentication functions to libiperf (#713)

Fixes #712. A subsequent commit will add some information to the libiperf manual page.


Revision tags: 3.5
# 8740c8cf 23-Feb-2018 Bruce A. Mah <[email protected]>

Close credentials file when we're done reading it. (#704)

Fixes #701.


Revision tags: 3.4
# 1e93fdcf 02-Jan-2018 Bruce A. Mah <[email protected]>

Fix comparison when checking for time skew when using authentication. (#674)

Fixes #673.

Submitted by @FuzzyStatic, reviewed by @ralcini.


# c0225583 16-Nov-2017 Bruce A. Mah <[email protected]>

Fix a compiler warning on FreeBSD related to getline(3).


Revision tags: 3.3
# 517ad224 01-Aug-2017 Philip Prindeville <[email protected]>

Add required RSA header for OpenSSL (#622)

Signed-off-by: Philip Prindeville <[email protected]>


Revision tags: 3.2, 3.2rc1
# d1c64c8a 26-Apr-2017 Gabriel Ganne <[email protected]>

fix invalid sizeof on pointer instead of type (#556)

This is only a coherency fix since sizeof(char*) >> sizeof(char)
There should be no functional nor stability impact whatsoever


# a51045de 20-Apr-2017 ralcini <[email protected]>

Service Authentication (#517)

Add an optional mode that requires clients to authenticate with the server.

In this mode, clients need to provide a username and a password, which are checked agains

Service Authentication (#517)

Add an optional mode that requires clients to authenticate with the server.

In this mode, clients need to provide a username and a password, which are checked against a password file on the server. The authentication credentials are protected by an RSA public keypair...the encrypted credentials are sent along with the test parameters.

Operationally the use of this feature places the following additional requirements on the build and installation of iperf3:

o The presence of the OpenSSL headers and libraries to build iperf3, and the libraries available on the client and server at runtime.

o Generation of an RSA public keypair; the private part is used by the server and the public part must be distributed to the clients.

o Username/password pairs for all authorized users, to be stored in a file on the server.

o Loose time synchronization between the server and clients (to within approximately 30 seconds).

o Appropriate command-line flags given on the client and server.

Note that iperf3 can be built and run as before, without fulfilling any of these requirements.

Partial documentation for this feature is included in this commit. It is anticipated that additional documentation text and editing will follow this merge.

Submitted by @ralcini. First suggested by @codyhanson in pull request #242.

show more ...