Changeset 9095

Show
Ignore:
Timestamp:
12/04/07 10:38:39 (12 months ago)
Author:
asterix
Message:

SSL certificate verification, certificate fingerprint verification. fixes #720, #2499

Location:
trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/glade/account_creation_wizard_window.glade

    r8777 r9095  
    3636                  <widget class="GtkFrame" id="frame33"> 
    3737                    <property name="visible">True</property> 
    38                     <property name="label_xalign">0</property> 
    3938                    <property name="shadow_type">GTK_SHADOW_NONE</property> 
    4039                    <child> 
     
    10099                </child> 
    101100              </widget> 
    102               <packing> 
    103                 <property name="tab_expand">False</property> 
    104               </packing> 
    105101            </child> 
    106102            <child> 
     
    110106              <packing> 
    111107                <property name="type">tab</property> 
    112                 <property name="tab_expand">False</property> 
    113108                <property name="tab_fill">False</property> 
    114109              </packing> 
     
    145140                    </child> 
    146141                    <child> 
    147                       <widget class="GtkLabel" id="jid_label"> 
     142                      <widget class="GtkEntry" id="username_entry"> 
    148143                        <property name="visible">True</property> 
    149144                        <property name="can_focus">True</property> 
     145                        <property name="has_focus">True</property> 
     146                        <property name="invisible_char">*</property> 
     147                        <signal name="changed" handler="on_username_entry_changed"/> 
     148                        <signal name="key_press_event" handler="on_username_entry_key_press_event"/> 
     149                      </widget> 
     150                      <packing> 
     151                        <property name="left_attach">1</property> 
     152                        <property name="right_attach">2</property> 
     153                        <property name="y_options"></property> 
     154                      </packing> 
     155                    </child> 
     156                    <child> 
     157                      <widget class="GtkLabel" id="label267"> 
     158                        <property name="visible">True</property> 
    150159                        <property name="xalign">0</property> 
    151                         <property name="use_markup">True</property> 
    152                         <property name="selectable">True</property> 
    153                       </widget> 
    154                       <packing> 
    155                         <property name="left_attach">1</property> 
    156                         <property name="right_attach">3</property> 
    157                         <property name="top_attach">3</property> 
    158                         <property name="bottom_attach">4</property> 
     160                        <property name="label" translatable="yes">_Server:</property> 
     161                        <property name="use_underline">True</property> 
     162                      </widget> 
     163                      <packing> 
     164                        <property name="top_attach">1</property> 
     165                        <property name="bottom_attach">2</property> 
    159166                        <property name="x_options">GTK_FILL</property> 
    160167                        <property name="y_options"></property> 
     
    162169                    </child> 
    163170                    <child> 
    164                       <widget class="GtkLabel" id="label258"> 
    165                         <property name="visible">True</property> 
    166                         <property name="xalign">0</property> 
    167                         <property name="label" translatable="yes">Your JID:</property> 
    168                       </widget> 
    169                       <packing> 
    170                         <property name="top_attach">3</property> 
    171                         <property name="bottom_attach">4</property> 
    172                         <property name="x_options">GTK_FILL</property> 
    173                         <property name="y_options"></property> 
    174                       </packing> 
    175                     </child> 
    176                     <child> 
    177                       <widget class="GtkLabel" id="label262"> 
    178                         <property name="visible">True</property> 
    179                         <property name="xalign">0</property> 
    180                         <property name="label" translatable="yes">_Username:</property> 
    181                         <property name="use_underline">True</property> 
    182                         <property name="mnemonic_widget">username_entry</property> 
    183                       </widget> 
    184                       <packing> 
    185                         <property name="x_options">GTK_FILL</property> 
    186                         <property name="y_options"></property> 
    187                       </packing> 
    188                     </child> 
    189                     <child> 
    190                       <widget class="GtkEntry" id="password_entry"> 
    191                         <property name="visible">True</property> 
    192                         <property name="can_focus">True</property> 
    193                         <property name="visibility">False</property> 
    194                         <property name="invisible_char">*</property> 
    195                         <property name="activates_default">True</property> 
     171                      <widget class="GtkComboBoxEntry" id="server_comboboxentry"> 
     172                        <property name="visible">True</property> 
     173                        <signal name="changed" handler="on_server_comboboxentry_changed"/> 
     174                        <child internal-child="entry"> 
     175                          <widget class="GtkEntry" id="comboboxentry-entry1"> 
     176                          </widget> 
     177                        </child> 
    196178                      </widget> 
    197179                      <packing> 
    198180                        <property name="left_attach">1</property> 
    199181                        <property name="right_attach">2</property> 
     182                        <property name="top_attach">1</property> 
     183                        <property name="bottom_attach">2</property> 
     184                        <property name="x_options">GTK_FILL</property> 
     185                        <property name="y_options">GTK_FILL</property> 
     186                      </packing> 
     187                    </child> 
     188                    <child> 
     189                      <widget class="GtkLabel" id="label263"> 
     190                        <property name="visible">True</property> 
     191                        <property name="xalign">0</property> 
     192                        <property name="label" translatable="yes">_Password:</property> 
     193                        <property name="use_underline">True</property> 
     194                        <property name="mnemonic_widget">password_entry</property> 
     195                      </widget> 
     196                      <packing> 
    200197                        <property name="top_attach">2</property> 
    201198                        <property name="bottom_attach">3</property> 
     199                        <property name="x_options">GTK_FILL</property> 
    202200                        <property name="y_options"></property> 
    203201                      </packing> 
     
    226224                    </child> 
    227225                    <child> 
    228                       <widget class="GtkLabel" id="label263"> 
    229                         <property name="visible">True</property> 
    230                         <property name="xalign">0</property> 
    231                         <property name="label" translatable="yes">_Password:</property> 
    232                         <property name="use_underline">True</property> 
    233                         <property name="mnemonic_widget">password_entry</property> 
    234                       </widget> 
    235                       <packing> 
     226                      <widget class="GtkEntry" id="password_entry"> 
     227                        <property name="visible">True</property> 
     228                        <property name="can_focus">True</property> 
     229                        <property name="visibility">False</property> 
     230                        <property name="invisible_char">*</property> 
     231                        <property name="activates_default">True</property> 
     232                      </widget> 
     233                      <packing> 
     234                        <property name="left_attach">1</property> 
     235                        <property name="right_attach">2</property> 
    236236                        <property name="top_attach">2</property> 
    237237                        <property name="bottom_attach">3</property> 
     238                        <property name="y_options"></property> 
     239                      </packing> 
     240                    </child> 
     241                    <child> 
     242                      <widget class="GtkLabel" id="label262"> 
     243                        <property name="visible">True</property> 
     244                        <property name="xalign">0</property> 
     245                        <property name="label" translatable="yes">_Username:</property> 
     246                        <property name="use_underline">True</property> 
     247                        <property name="mnemonic_widget">username_entry</property> 
     248                      </widget> 
     249                      <packing> 
    238250                        <property name="x_options">GTK_FILL</property> 
    239251                        <property name="y_options"></property> 
     
    241253                    </child> 
    242254                    <child> 
    243                       <widget class="GtkComboBoxEntry" id="server_comboboxentry"> 
    244                         <property name="visible">True</property> 
    245                         <signal name="changed" handler="on_server_comboboxentry_changed"/> 
    246                         <child internal-child="entry"> 
    247                           <widget class="GtkEntry" id="comboboxentry-entry1"> 
    248                           </widget> 
    249                         </child> 
    250                       </widget> 
    251                       <packing> 
    252                         <property name="left_attach">1</property> 
    253                         <property name="right_attach">2</property> 
    254                         <property name="top_attach">1</property> 
    255                         <property name="bottom_attach">2</property> 
    256                         <property name="x_options">GTK_FILL</property> 
    257                         <property name="y_options">GTK_FILL</property> 
    258                       </packing> 
    259                     </child> 
    260                     <child> 
    261                       <widget class="GtkLabel" id="label267"> 
     255                      <widget class="GtkLabel" id="label258"> 
    262256                        <property name="visible">True</property> 
    263257                        <property name="xalign">0</property> 
    264                         <property name="label" translatable="yes">_Server:</property> 
    265                         <property name="use_underline">True</property> 
    266                       </widget> 
    267                       <packing> 
    268                         <property name="top_attach">1</property> 
    269                         <property name="bottom_attach">2</property> 
     258                        <property name="label" translatable="yes">Your JID:</property> 
     259                      </widget> 
     260                      <packing> 
     261                        <property name="top_attach">3</property> 
     262                        <property name="bottom_attach">4</property> 
    270263                        <property name="x_options">GTK_FILL</property> 
    271264                        <property name="y_options"></property> 
     
    273266                    </child> 
    274267                    <child> 
    275                       <widget class="GtkEntry" id="username_entry"> 
     268                      <widget class="GtkLabel" id="jid_label"> 
    276269                        <property name="visible">True</property> 
    277270                        <property name="can_focus">True</property> 
    278                         <property name="has_focus">True</property> 
    279                         <property name="invisible_char">*</property> 
    280                         <signal name="changed" handler="on_username_entry_changed"/> 
    281                         <signal name="key_press_event" handler="on_username_entry_key_press_event"/> 
     271                        <property name="xalign">0</property> 
     272                        <property name="use_markup">True</property> 
     273                        <property name="selectable">True</property> 
    282274                      </widget> 
    283275                      <packing> 
    284276                        <property name="left_attach">1</property> 
    285                         <property name="right_attach">2</property> 
     277                        <property name="right_attach">3</property> 
     278                        <property name="top_attach">3</property> 
     279                        <property name="bottom_attach">4</property> 
     280                        <property name="x_options">GTK_FILL</property> 
    286281                        <property name="y_options"></property> 
    287282                      </packing> 
     
    295290              <packing> 
    296291                <property name="position">1</property> 
    297                 <property name="tab_expand">False</property> 
    298292              </packing> 
    299293            </child> 
     
    305299                <property name="type">tab</property> 
    306300                <property name="position">1</property> 
    307                 <property name="tab_expand">False</property> 
    308301                <property name="tab_fill">False</property> 
    309302              </packing> 
     
    389382                        <property name="column_spacing">5</property> 
    390383                        <property name="row_spacing">5</property> 
     384                        <child> 
     385                          <widget class="GtkLabel" id="label381"> 
     386                            <property name="visible">True</property> 
     387                            <property name="xalign">0</property> 
     388                            <property name="label" translatable="yes">Prox_y:</property> 
     389                            <property name="use_underline">True</property> 
     390                          </widget> 
     391                          <packing> 
     392                            <property name="x_options">GTK_FILL</property> 
     393                            <property name="y_options"></property> 
     394                          </packing> 
     395                        </child> 
     396                        <child> 
     397                          <widget class="GtkComboBox" id="proxies_combobox"> 
     398                            <property name="visible">True</property> 
     399                            <property name="items">None</property> 
     400                          </widget> 
     401                          <packing> 
     402                            <property name="left_attach">1</property> 
     403                            <property name="right_attach">2</property> 
     404                            <property name="y_options">GTK_FILL</property> 
     405                          </packing> 
     406                        </child> 
     407                        <child> 
     408                          <widget class="GtkButton" id="manage_proxies_button"> 
     409                            <property name="visible">True</property> 
     410                            <property name="can_focus">True</property> 
     411                            <property name="label" translatable="yes">Manage...</property> 
     412                            <property name="use_underline">True</property> 
     413                            <property name="response_id">0</property> 
     414                            <signal name="clicked" handler="on_manage_proxies_button_clicked"/> 
     415                          </widget> 
     416                          <packing> 
     417                            <property name="left_attach">2</property> 
     418                            <property name="right_attach">3</property> 
     419                            <property name="x_options"></property> 
     420                            <property name="y_options"></property> 
     421                          </packing> 
     422                        </child> 
     423                        <child> 
     424                          <widget class="GtkCheckButton" id="custom_host_port_checkbutton"> 
     425                            <property name="visible">True</property> 
     426                            <property name="can_focus">True</property> 
     427                            <property name="label" translatable="yes">Use custom hostname/port</property> 
     428                            <property name="use_underline">True</property> 
     429                            <property name="response_id">0</property> 
     430                            <property name="draw_indicator">True</property> 
     431                            <signal name="toggled" handler="on_custom_host_port_checkbutton_toggled"/> 
     432                          </widget> 
     433                          <packing> 
     434                            <property name="right_attach">3</property> 
     435                            <property name="top_attach">1</property> 
     436                            <property name="bottom_attach">2</property> 
     437                            <property name="y_options"></property> 
     438                          </packing> 
     439                        </child> 
    391440                        <child> 
    392441                          <widget class="GtkHBox" id="custom_host_hbox"> 
     
    451500                          </packing> 
    452501                        </child> 
    453                         <child> 
    454                           <widget class="GtkCheckButton" id="custom_host_port_checkbutton"> 
    455                             <property name="visible">True</property> 
    456                             <property name="can_focus">True</property> 
    457                             <property name="label" translatable="yes">Use custom hostname/port</property> 
    458                             <property name="use_underline">True</property> 
    459                             <property name="response_id">0</property> 
    460                             <property name="draw_indicator">True</property> 
    461                             <signal name="toggled" handler="on_custom_host_port_checkbutton_toggled"/> 
    462                           </widget> 
    463                           <packing> 
    464                             <property name="right_attach">3</property> 
    465                             <property name="top_attach">1</property> 
    466                             <property name="bottom_attach">2</property> 
    467                             <property name="y_options"></property> 
    468                           </packing> 
    469                         </child> 
    470                         <child> 
    471                           <widget class="GtkButton" id="manage_proxies_button"> 
    472                             <property name="visible">True</property> 
    473                             <property name="can_focus">True</property> 
    474                             <property name="label" translatable="yes">Manage...</property> 
    475                             <property name="use_underline">True</property> 
    476                             <property name="response_id">0</property> 
    477                             <signal name="clicked" handler="on_manage_proxies_button_clicked"/> 
    478                           </widget> 
    479                           <packing> 
    480                             <property name="left_attach">2</property> 
    481                             <property name="right_attach">3</property> 
    482                             <property name="x_options"></property> 
    483                             <property name="y_options"></property> 
    484                           </packing> 
    485                         </child> 
    486                         <child> 
    487                           <widget class="GtkComboBox" id="proxies_combobox"> 
    488                             <property name="visible">True</property> 
    489                             <property name="items">None</property> 
    490                           </widget> 
    491                           <packing> 
    492                             <property name="left_attach">1</property> 
    493                             <property name="right_attach">2</property> 
    494                             <property name="y_options">GTK_FILL</property> 
    495                           </packing> 
    496                         </child> 
    497                         <child> 
    498                           <widget class="GtkLabel" id="label381"> 
    499                             <property name="visible">True</property> 
    500                             <property name="xalign">0</property> 
    501                             <property name="label" translatable="yes">Prox_y:</property> 
    502                             <property name="use_underline">True</property> 
    503                           </widget> 
    504                           <packing> 
    505                             <property name="x_options">GTK_FILL</property> 
    506                             <property name="y_options"></property> 
    507                           </packing> 
    508                         </child> 
    509502                      </widget> 
    510503                    </child> 
     
    527520              <packing> 
    528521                <property name="position">2</property> 
    529                 <property name="tab_expand">False</property> 
    530522              </packing> 
    531523            </child> 
     
    537529                <property name="type">tab</property> 
    538530                <property name="position">2</property> 
    539                 <property name="tab_expand">False</property> 
    540531                <property name="tab_fill">False</property> 
    541532              </packing> 
    542533            </child> 
    543534            <child> 
    544               <widget class="GtkVBox" id="form_vbox"> 
    545                 <property name="visible">True</property> 
    546                 <child> 
    547                   <placeholder/> 
     535              <widget class="GtkVBox" id="ssl_vbox"> 
     536                <property name="visible">True</property> 
     537                <child> 
     538                  <widget class="GtkHBox" id="hbox1"> 
     539                    <property name="visible">True</property> 
     540                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     541                    <child> 
     542                      <widget class="GtkImage" id="image1"> 
     543                        <property name="visible">True</property> 
     544                        <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     545                        <property name="stock">gtk-dialog-warning</property> 
     546                        <property name="icon_size">5</property> 
     547                      </widget> 
     548                      <packing> 
     549                        <property name="expand">False</property> 
     550                      </packing> 
     551                    </child> 
     552                    <child> 
     553                      <widget class="GtkLabel" id="ssl_label"> 
     554                        <property name="visible">True</property> 
     555                        <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     556                      </widget> 
     557                      <packing> 
     558                        <property name="position">1</property> 
     559                      </packing> 
     560                    </child> 
     561                  </widget> 
     562                  <packing> 
     563                    <property name="fill">False</property> 
     564                  </packing> 
     565                </child> 
     566                <child> 
     567                  <widget class="GtkCheckButton" id="ssl_checkbutton"> 
     568                    <property name="visible">True</property> 
     569                    <property name="can_focus">True</property> 
     570                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
     571                    <property name="label" translatable="yes">Add this certificate to the list of trusted certificates. 
     572SHA1 fingerprint of the certificate: 
     573</property> 
     574                    <property name="response_id">0</property> 
     575                    <property name="draw_indicator">True</property> 
     576                  </widget> 
     577                  <packing> 
     578                    <property name="fill">False</property> 
     579                    <property name="position">1</property> 
     580                  </packing> 
    548581                </child> 
    549582              </widget> 
    550583              <packing> 
    551584                <property name="position">3</property> 
    552                 <property name="tab_expand">False</property> 
    553               </packing> 
    554             </child> 
    555             <child> 
    556               <widget class="GtkLabel" id="label382"> 
     585              </packing> 
     586            </child> 
     587            <child> 
     588              <widget class="GtkLabel" id="label482"> 
    557589                <property name="visible">True</property> 
    558590              </widget> 
     
    560592                <property name="type">tab</property> 
    561593                <property name="position">3</property> 
    562                 <property name="tab_expand">False</property> 
     594                <property name="tab_fill">False</property> 
     595              </packing> 
     596            </child> 
     597            <child> 
     598              <widget class="GtkVBox" id="form_vbox"> 
     599                <property name="visible">True</property> 
     600                <child> 
     601                  <placeholder/> 
     602                </child> 
     603              </widget> 
     604              <packing> 
     605                <property name="position">4</property> 
     606              </packing> 
     607            </child> 
     608            <child> 
     609              <widget class="GtkLabel" id="label382"> 
     610                <property name="visible">True</property> 
     611              </widget> 
     612              <packing> 
     613                <property name="type">tab</property> 
     614                <property name="position">4</property> 
    563615                <property name="tab_fill">False</property> 
    564616              </packing> 
     
    593645              </widget> 
    594646              <packing> 
    595                 <property name="position">4</property> 
    596                 <property name="tab_expand">False</property> 
     647                <property name="position">5</property> 
    597648              </packing> 
    598649            </child> 
     
    603654              <packing> 
    604655                <property name="type">tab</property> 
    605                 <property name="position">4</property> 
    606                 <property name="tab_expand">False</property> 
     656                <property name="position">5</property> 
    607657                <property name="tab_fill">False</property> 
    608658              </packing> 
     
    672722              </widget> 
    673723              <packing> 
    674                 <property name="position">5</property> 
    675                 <property name="tab_expand">False</property> 
     724                <property name="position">6</property> 
    676725              </packing> 
    677726            </child> 
     
    682731              <packing> 
    683732                <property name="type">tab</property> 
    684