From 5f9a499a462fcf03bbaabff960bab06180cceff1 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Tue, 2 May 2017 13:15:04 -0700 Subject: [PATCH] package: fix SHA256 attribute name, now defined by the spec. The old name was my own extension and unused by anything so there aren't any compatibility issues here. --- omaha/package.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/omaha/package.go b/omaha/package.go index 497d239..d2dcdc6 100644 --- a/omaha/package.go +++ b/omaha/package.go @@ -29,12 +29,11 @@ var ( PackageSizeMismatchError = errors.New("package size is invalid") ) -// Package represents a single downloadable file. The Sha256 attribute -// is not a standard part of the Omaha protocol which only uses Sha1. +// Package represents a single downloadable file. type Package struct { Name string `xml:"name,attr"` Sha1 string `xml:"hash,attr"` - Sha256 string `xml:"sha256,attr,omitempty"` + Sha256 string `xml:"hash_sha256,attr,omitempty"` Size uint64 `xml:"size,attr"` Required bool `xml:"required,attr"` }