Changeset 2407

Show
Ignore:
Timestamp:
11/17/08 12:04:29 (2 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r2406 r2407  
    112008-11-17  Alvaro Lopez Ortega  <alvaro@octality.com> 
     2 
     3        * admin/PageGeneral.py, admin/consts.py: Adds a new option for 
     4        setting the TLS backend. 
    25 
    36        * m4/libgnutls.m4, cherokee/virtual_server.c, 
  • cherokee/trunk/admin/PageGeneral.py

    r2094 r2407  
    3131NOTE_GROUP     = 'Changes the effective group. Group names and IDs are accepted.' 
    3232NOTE_CHROOT    = 'Jail the server inside the directory. Don\'t use it as the only security measure.' 
     33NOTE_TLS       = 'Which, if any, should be the TLS/SSL backend.' 
    3334 
    3435HELPS = [('config_general',    "General Configuration"), 
     
    5354        table = TableProps() 
    5455        self.AddPropEntry (table, 'Port',     'server!port',     NOTE_PORT) 
    55         self.AddPropEntry (table, 'Port TLS', 'server!port_tls', NOTE_PORT_TLS) 
    5656        self.AddPropCheck (table, 'IPv6',     'server!ipv6', True, NOTE_IPV6) 
    5757        self.AddPropEntry (table, 'Listen',   'server!listen',   NOTE_LISTEN) 
     
    7171        txt += self.Indent(table) 
    7272 
     73        txt += "<h2>Secure HTTP</h2>" 
     74        table = TableProps() 
     75        self.AddPropEntry (table, 'Port TLS', 'server!port_tls', NOTE_PORT_TLS) 
     76        self.AddPropOptions_Reload (table, 'Back-end', 'server!tls', 
     77                                    modules_available(CRYPTORS), NOTE_TLS) 
     78        txt += self.Indent(table) 
     79         
    7380        form = Form ("/%s" % (self._id), add_submit=False) 
    7481        return form.Render(txt,DEFAULT_SUBMIT_VALUE) 
  • cherokee/trunk/admin/consts.py

    r2378 r2407  
    122122    ('time',     'Custom value') 
    123123] 
     124 
     125CRYPTORS = [ 
     126    ('',         'No TLS/SSL'), 
     127    ('libssl',   'OpenSSL / libssl') 
     128]