rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 91 forks source link

API: Add LRO_USERNAME and LRO_PASSWORD options #316

Closed jrohel closed 3 months ago

jrohel commented 3 months ago

The original LRO_USERPWD option does not support a colon in the username. Use LRO_USERNAME and LRO_PASSWORD instead.

The description of the LRO_USERPWD option has been expanded: _The user and password strings are not URL decoded, so there is no way to send in a username containing a colon using this option. The option is DEPRECATED! Use LRO_USERNAME and LROPASSWORD.

The description of the LRO_PROXYUSERPWD option has been expanded: Both the username and the password are URL decoded before use, so if the username contains, for example, a colon, it should be encoded as %3A.

Unit tests for LRO_USERNAME and LRO_PASSWORD are included.

Closes: https://github.com/rpm-software-management/librepo/issues/315