8000 go-curl cannot detect all SSL engines · Issue #91 · andelf/go-curl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
go-curl cannot detect all SSL engines #91
Open
@kwarabei

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?

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

      0