GRAYBYTE WORDPRESS FILE MANAGER1544

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby20/lib64/ruby/2.0.0/webrick/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby20/lib64/ruby/2.0.0/webrick//https.rb
#
# https.rb -- SSL/TLS enhancement for HTTPServer
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2001 GOTOU Yuuzou
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
#
# $IPR: https.rb,v 1.15 2003/07/22 19:20:42 gotoyuzo Exp $

require 'webrick/ssl'

module WEBrick
  module Config
    HTTP.update(SSL)
  end

  ##
  #--
  # Adds SSL functionality to WEBrick::HTTPRequest

  class HTTPRequest

    ##
    # HTTP request SSL cipher

    attr_reader :cipher

    ##
    # HTTP request server certificate

    attr_reader :server_cert

    ##
    # HTTP request client certificate

    attr_reader :client_cert

    # :stopdoc:

    alias orig_parse parse

    def parse(socket=nil)
      if socket.respond_to?(:cert)
        @server_cert = socket.cert || @config[:SSLCertificate]
        @client_cert = socket.peer_cert
        @client_cert_chain = socket.peer_cert_chain
        @cipher      = socket.cipher
      end
      orig_parse(socket)
    end

    alias orig_parse_uri parse_uri

    def parse_uri(str, scheme="https")
      if server_cert
        return orig_parse_uri(str, scheme)
      end
      return orig_parse_uri(str)
    end
    private :parse_uri

    alias orig_meta_vars meta_vars

    def meta_vars
      meta = orig_meta_vars
      if server_cert
        meta["HTTPS"] = "on"
        meta["SSL_SERVER_CERT"] = @server_cert.to_pem
        meta["SSL_CLIENT_CERT"] = @client_cert ? @client_cert.to_pem : ""
        if @client_cert_chain
          @client_cert_chain.each_with_index{|cert, i|
            meta["SSL_CLIENT_CERT_CHAIN_#{i}"] = cert.to_pem
          }
        end
        meta["SSL_CIPHER"] = @cipher[0]
        meta["SSL_PROTOCOL"] = @cipher[1]
        meta["SSL_CIPHER_USEKEYSIZE"] = @cipher[2].to_s
        meta["SSL_CIPHER_ALGKEYSIZE"] = @cipher[3].to_s
      end
      meta
    end

    # :startdoc:
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:53:08
root / root
0755
httpauth
--
March 03 2024 22:43:33
root / linksafe
0755
httpservlet
--
March 03 2024 22:43:33
root / linksafe
0755
accesslog.rb
4.308 KB
January 26 2013 01:12:54
root / linksafe
0644
cgi.rb
7.97 KB
January 26 2013 01:12:54
root / linksafe
0644
compat.rb
0.891 KB
May 17 2011 20:29:58
root / linksafe
0644
config.rb
5.564 KB
January 26 2013 01:12:54
root / linksafe
0644
cookie.rb
3.884 KB
January 26 2013 02:31:43
root / linksafe
0644
htmlutils.rb
0.664 KB
February 16 2014 16:56:01
root / linksafe
0644
httpauth.rb
3.327 KB
May 10 2011 23:37:43
root / linksafe
0644
httpproxy.rb
9.646 KB
March 24 2013 16:27:10
root / linksafe
0644
httprequest.rb
14.326 KB
December 24 2013 15:46:01
root / linksafe
0644
httpresponse.rb
10.563 KB
January 26 2013 01:12:54
root / linksafe
0644
https.rb
1.865 KB
January 26 2013 01:12:54
root / linksafe
0644
httpserver.rb
7.688 KB
January 26 2013 01:12:54
root / linksafe
0644
httpservlet.rb
0.653 KB
October 02 2009 10:45:39
root / linksafe
0644
httpstatus.rb
5.263 KB
August 21 2012 04:50:18
root / linksafe
0644
httputils.rb
12.706 KB
February 16 2014 16:56:01
root / linksafe
0644
httpversion.rb
1.573 KB
January 26 2013 01:12:54
root / linksafe
0644
log.rb
3.922 KB
January 26 2013 01:12:54
root / linksafe
0644
server.rb
8.415 KB
January 26 2013 01:12:54
root / linksafe
0644
ssl.rb
6.668 KB
January 26 2013 01:12:54
root / linksafe
0644
utils.rb
6.444 KB
January 26 2013 01:12:54
root / linksafe
0644
version.rb
0.375 KB
January 26 2013 01:12:54
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF