wahern / luaossl

Most comprehensive OpenSSL module in the Lua universe.
http://25thandclement.com/~william/projects/luaossl.html
Other
140 stars 49 forks source link

Segfault in setEphemeralKey #172

Open daurnimator opened 5 years ago

daurnimator commented 5 years ago

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 commented 5 years ago

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.