Skip to content

Commit 0f3c6ca

Browse files
orgadsmatzbot
authored andcommitted
[ruby/openssl] c_rehash: fix hash_name output for small hashes
The hash lookup is done by 8-character hash. ruby/openssl@fedb57255c
1 parent ce1ed87 commit 0f3c6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/openssl/c_rehash.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def path(filename)
156156
end
157157

158158
def hash_name(name)
159-
sprintf("%x", name.hash)
159+
sprintf("%08x", name.hash)
160160
end
161161

162162
def fingerprint(der)

0 commit comments

Comments
 (0)