mirror of
https://github.com/inspec/inspec
synced 2024-11-26 06:30:26 +00:00
Renamed the method for validating header
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
9454821d7c
commit
f0c868759d
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ module InspecPlugins
|
|||
raise "Invalid artifact version detected."
|
||||
end
|
||||
|
||||
verify_file_header?(header)
|
||||
valid_header?(header)
|
||||
verification_key = KEY_ALG.new File.read "#{header[1]}.pem.pub"
|
||||
signature = Base64.decode64(header[3])
|
||||
digest = ARTIFACT_DIGEST.new
|
||||
|
@ -160,7 +160,7 @@ module InspecPlugins
|
|||
end
|
||||
end
|
||||
|
||||
def verify_file_header?(header)
|
||||
def valid_header?(header)
|
||||
unless File.exist? "#{header[1]}.pem.pub"
|
||||
raise "Can't find #{header[1]}.pem.pub}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue