Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
openid.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2009 at 08:24 UTC
Updated:
20 Mar 2020 at 16:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
recidive commentedTypo in title.
Comment #2
cburschkaThis patch looks ready to go, except for one blank line containing two spaces.
Comment #3
recidive commentedOk, this time without the spaces.
Comment #4
dries commentedPersonally, I'd not bother with having two code paths. This code shouldn't be in the critical performance path, so the existing code is probably fine. I'm tempted to mark this "won't fix".
Comment #5
dries commentedMarking this as "won't fix".
Comment #6
c960657 commentedWe now require the hash extension (see system_requirements()), so we can now switch completely to hash_hmac().
openid_hmac-A-2.patch removes _openid_hmac() and OPENID_SHA1_BLOCKSIZE completely, openid_hmac-B-2.patch preserves them for backwards-compatibility. It think we should use the former—_openid_hmac() is a private function, and I doubt anybody outside of the OpenID module would use the OPENID_SHA1_BLOCKSIZE constant.
Edit: The patches are attached to the next comment.
Comment #7
c960657 commentedComment #8
recidive commentedI also think the "A" patch is better.
Comment #9
c960657 commentedFor D8, openid_hmac-A-2.patch is definitely the right choice.
Comment #10
c960657 commentedComment #11
sunAwesome.
Comment #12
catch#10: openid_hmac-A-3.patch queued for re-testing.
Comment #13
sunRe-rolled against HEAD.
Comment #14
catchLooks great. Committed/pushed to 8.x.
Comment #16
c960657 commentedReroll of openid_hmac-A-2.patch for D7.