luaossl icon indicating copy to clipboard operation
luaossl copied to clipboard

Segfault in setEphemeralKey

Open daurnimator opened this issue 6 years ago • 1 comments

Reported in https://github.com/daurnimator/lua-http/issues/153

local openssl_ctx = require "openssl.ssl.context"
local openssl_pkey = require "openssl.pkey"

local ctx = openssl_ctx.new("TLS", false)
ctx:setEphemeralKey(openssl_pkey.new{ type = "EC", curve = "prime256v1" })

daurnimator avatar Jun 16 '19 04:06 daurnimator

Wait this is really weird... I re-compiled luaossl and the issue went away.

When I did have the issue, it was EVP_PKEY_base_id failing.

daurnimator avatar Jun 16 '19 04:06 daurnimator