Skip to content

Commit

Permalink
formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ardevd committed Jan 4, 2024
1 parent cb35fdf commit 9aad853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/credentials/credential_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func deserialize(data []byte) (*credentialsHeader, error) {
certLength := int(binary.BigEndian.Uint32(data[:4]))
macaroonLength := int(binary.BigEndian.Uint32(data[4:]))
return &credentialsHeader{
CertLength: certLength,
CertLength: certLength,
MacaroonLength: macaroonLength,
}, nil
}
Expand All @@ -63,8 +63,8 @@ func EncryptCredentials(certificatePath string, macaroonPath string) string {
}

// Create a header with file lengths
header := newHeader(len(certData),len(macData))
headerBytes := header.serialize()
header := newHeader(len(certData), len(macData))
headerBytes := header.serialize()
log.Info("Header: " + hex.EncodeToString(headerBytes))

concatenatedData := append(certData, macData...)
Expand Down

0 comments on commit 9aad853

Please sign in to comment.