Skip to content

Commit

Permalink
Merge pull request vmware#3461 from HakanSunay/topic/hhalil/record-nf…
Browse files Browse the repository at this point in the history
…c-thumbprint

nfc: Record the SSL thumbprint for the host the (device) URL refers to
  • Loading branch information
HakanSunay authored Jun 4, 2024
2 parents d4dc699 + 1ec975c commit 694a390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion nfc/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ func (l *Lease) newLeaseInfo(li *types.HttpNfcLeaseInfo, items []types.OvfFileIt
// this is an import
for _, item := range items {
if device.ImportKey == item.DeviceId {
info.Items = append(info.Items, NewFileItem(u, item))
fi := NewFileItem(u, item)
fi.Thumbprint = device.SslThumbprint

info.Items = append(info.Items, fi)

break
}
}
Expand Down
4 changes: 3 additions & 1 deletion nfc/lease_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import (

type FileItem struct {
types.OvfFileItem
URL *url.URL

URL *url.URL
Thumbprint string

ch chan progress.Report
}
Expand Down

0 comments on commit 694a390

Please sign in to comment.