diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-03-19 17:07:24 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-03-19 17:11:23 -0400 |
| commit | b3f900170561c03b40d376e76fdedf49799e0c7d (patch) | |
| tree | b8710138e3d6b50777e506325465defa81eb96c6 /openstack/common/authutils.py | |
| parent | 13ed88186bb5c6a1900c3bb742d06743fd21ac58 (diff) | |
| download | oslo-b3f900170561c03b40d376e76fdedf49799e0c7d.tar.gz oslo-b3f900170561c03b40d376e76fdedf49799e0c7d.tar.xz oslo-b3f900170561c03b40d376e76fdedf49799e0c7d.zip | |
Add auth_str_equal() to common utils.
This function provides a constant-time string comparison. Its primary
use case is for authentication to avoid timing vulnerabilities. Similar
functions currently exist in keystone, nova, and swift. The three
diverged in slight ways immediately after going in. This version comes
from keystone, which I consider the "best" version to promote to
openstack-common.
Change-Id: I39537a21be8a402e34e526466f6b90188344a35d
Diffstat (limited to 'openstack/common/authutils.py')
0 files changed, 0 insertions, 0 deletions
