github / smimesign

An S/MIME signing utility for use with Git
MIT License
587 stars 135 forks source link

certstore: certstore_windows.go type error #107

Closed chkp-idoza closed 2 weeks ago

chkp-idoza commented 2 years ago

After installing & importing the smimesign/certstore package, I get the following error while running my go main program:

....\go\pkg\mod\github.com\github\smimesign@v0.2.0\certstore\certstore_windows.go:640:29: cannot convert cmsg (variable of type *_Ctype_char) to type _Ctype_HANDLE

the only code I have added is the following:

store, err := certstore.Open()
if err != nil {
    fmt.Println(err)
}
defer store.Close()

Is there a way to fix this ?

hangorn commented 2 years ago

The same is happening to me

ElMostafaIdrassi commented 2 years ago

Should be fixed by #114

vcsjones commented 2 weeks ago

This has been fixed in main.