summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/ssl.rbs
blob: 83f08f72d8860a90dde7f8a1cb8ae572b0221ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module WEBrick
  module Config
    SSL: Hash[Symbol, untyped]
  end

  module Utils
    def self?.create_self_signed_cert: (untyped bits, untyped cn, untyped comment) -> ::Array[untyped]
  end

  class GenericServer
    @ssl_context: OpenSSL::SSL::SSLContext?

    def ssl_context: () -> OpenSSL::SSL::SSLContext?

    def setup_ssl_context: (Hash[Symbol, untyped] config) -> OpenSSL::SSL::SSLContext

    def ssl_servername_callback: (untyped sslsocket, ?untyped? hostname) -> untyped
  end
end