Skip to content

Commit

Permalink
Merge pull request #115 from n4ss/fix-appveyor
Browse files Browse the repository at this point in the history
Fix Windows CI
  • Loading branch information
Vincent Demeester authored Jun 27, 2018
2 parents d499cf5 + 093af81 commit 1c295f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wincred/wincred_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ type Wincred struct{}

// Add adds new credentials to the windows credentials manager.
func (h Wincred) Add(creds *credentials.Credentials) error {
credsLabels := []byte(credentials.CredsLabel)
g := winc.NewGenericCredential(creds.ServerURL)
g.UserName = creds.Username
g.CredentialBlob = []byte(creds.Secret)
g.Persist = winc.PersistLocalMachine
g.Attributes = []winc.CredentialAttribute{{"label", []byte(credentials.CredsLabel)}}
g.Attributes = []winc.CredentialAttribute{{Keyword: "label", Value: credsLabels}}

return g.Write()
}
Expand Down

0 comments on commit 1c295f7

Please sign in to comment.