Skip to content

go-curl cannot detect all SSL engines #91

Description

@kwarabei

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions