Skip to content

Commit

Permalink
fix: remove uneeded args from parsecodesign
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 11, 2020
1 parent eda599b commit 74a705c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions codesign.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import (
"io"
"strings"

"github.com/blacktop/go-macho/types"
"github.com/blacktop/go-macho/types/codesign"
)

// ParseCodeSignature parses the LC_CODE_SIGNATURE data
func ParseCodeSignature(cmddat []byte, hdr *types.CodeSignatureCmd, offset int64) (*CodeSignature, error) {
func ParseCodeSignature(cmddat []byte) (*CodeSignature, error) {
r := bytes.NewReader(cmddat)

cs := &CodeSignature{}
Expand Down
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ func NewFile(r io.ReaderAt, loads ...types.LoadCmd) (*File, error) {
if _, err := r.ReadAt(csdat, int64(hdr.Offset)); err != nil {
return nil, err
}
cs, err := ParseCodeSignature(csdat, &hdr, offset)
cs, err := ParseCodeSignature(csdat)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 74a705c

Please sign in to comment.