From 0f3c6ca480d3dab95b355392658972323f890e7d Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 15 Sep 2025 20:53:55 +0300 Subject: [PATCH] [ruby/openssl] c_rehash: fix hash_name output for small hashes The hash lookup is done by 8-character hash. https://github.com/ruby/openssl/commit/fedb57255c --- sample/openssl/c_rehash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/openssl/c_rehash.rb b/sample/openssl/c_rehash.rb index de4b66e902..8b005bbb84 100644 --- a/sample/openssl/c_rehash.rb +++ b/sample/openssl/c_rehash.rb @@ -156,7 +156,7 @@ private end def hash_name(name) - sprintf("%x", name.hash) + sprintf("%08x", name.hash) end def fingerprint(der)