Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recidive’s picture

Title: Use hash extension in _openid_hmac() is available » Use hash extension in _openid_hmac() if available

Typo in title.

cburschka’s picture

Status: Needs review » Needs work

This patch looks ready to go, except for one blank line containing two spaces.

recidive’s picture

Status: Needs work » Needs review
FileSize
1.28 KB

Ok, this time without the spaces.

Dries’s picture

Personally, 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".

Dries’s picture

Status: Needs review » Closed (won't fix)

Marking this as "won't fix".

c960657’s picture

We 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.

c960657’s picture

Title: Use hash extension in _openid_hmac() if available » Use hash extension in _openid_hmac()
Status: Closed (won't fix) » Needs review
FileSize
1.2 KB
2.14 KB
recidive’s picture

I also think the "A" patch is better.

c960657’s picture

Version: 7.x-dev » 8.x-dev

For D8, openid_hmac-A-2.patch is definitely the right choice.

c960657’s picture

FileSize
1.4 KB
sun’s picture

Status: Needs review » Reviewed & tested by the community

Awesome.

catch’s picture

#10: openid_hmac-A-3.patch queued for re-testing.

sun’s picture

Re-rolled against HEAD.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Looks great. Committed/pushed to 8.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

c960657’s picture

  • catch committed 06373cf on 8.3.x
    Issue #448162 by c960657, recidive, sun: Use hash extension in...

  • catch committed 06373cf on 8.3.x
    Issue #448162 by c960657, recidive, sun: Use hash extension in...

  • catch committed 06373cf on 8.4.x
    Issue #448162 by c960657, recidive, sun: Use hash extension in...

  • catch committed 06373cf on 8.4.x
    Issue #448162 by c960657, recidive, sun: Use hash extension in...

  • catch committed 06373cf on 9.1.x
    Issue #448162 by c960657, recidive, sun: Use hash extension in...