Open
Description
I have a following source code:
package main
import (
"fmt"
"log"
curl "github.com/andelf/go-curl"
)
func main() {
easy := curl.EasyInit()
defer easy.Cleanup()
if easy != nil {
engines, err := easy.Getinfo(curl.INFO_SSL_ENGINES)
if err != nil {
log.Fatal("GET INFO ", engines)
}
fmt.Println("ENGINES: ", engines)
err = easy.Setopt(curl.OPT_SSLENGINE, "gost")
if err != nil {
fmt.Println("SET SSL ENGINE ERR", err)
}
}
}
My goal is to use curl with with a custom SSL engine.
Running the code above produces the following output:
ENGINES: [dynamic]
SET SSL ENGINE ERR: curl: SSL crypto engine not found
Meanwhile, executing the curl --engine list
command prints this list of engines:
Build-time engines:
dynamic
gost
Why go-curl couldn't detect the 'gost' engine and how can I fix that?
Metadata
Metadata
Assignees
Labels
No labels