Open bortzmeyer opened 1 year ago
Untested:
--- a/lib/socket/ssl.ex
+++ b/lib/socket/ssl.ex
@@ -52,7 +52,7 @@ defmodule Socket.SSL do
"""
@spec ciphers :: [:ssl.erl_cipher_suite]
def ciphers do
- :ssl.cipher_suites
+ :ssl.cipher_suites(:all, :"tlsv1.3")
end
@doc """
@@ -249,7 +249,7 @@ defmodule Socket.SSL do
timeout = options[:timeout] || :infinity
options = Keyword.delete(options, :timeout)
- :ssl.ssl_accept(wrap, arguments(options), timeout)
+ :ssl.ssl_handshake(wrap, arguments(options), timeout)
end
@doc """
@@ -269,7 +269,7 @@ defmodule Socket.SSL do
def handshake(socket, options \\ []) when socket |> Record.is_record(:sslsocket) do
timeout = options[:timeout] || :infinity
- :ssl.ssl_accept(socket, timeout)
+ :ssl.ssl_handshake(socket, timeout)
end
@doc """
See (UndefinedFunctionError) function :ssl.cipher_suites/1 is undefined or private
Trying to compile:
When running: