/[mailutils]/mailutils/imap4d/starttls.c
ViewVC logotype

Diff of /mailutils/imap4d/starttls.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gray, Tue Jan 21 08:06:55 2003 UTC revision 1.4 by gray, Wed Jan 22 13:14:45 2003 UTC
# Line 19  Line 19 
19    
20  #ifdef WITH_TLS  #ifdef WITH_TLS
21    
22    static int tls_available;
23    static int tls_done;
24    
25  int  int
26  imap4d_starttls (struct imap4d_command *command, char *arg)  imap4d_starttls (struct imap4d_command *command, char *arg)
27  {  {
# Line 40  imap4d_starttls (struct imap4d_command * Line 43  imap4d_starttls (struct imap4d_command *
43        imap4d_capability_remove ("STARTTLS");        imap4d_capability_remove ("STARTTLS");
44        login_disabled = 0;        login_disabled = 0;
45        imap4d_capability_remove ("LOGINDISABLED");        imap4d_capability_remove ("LOGINDISABLED");
46          util_atexit (mu_deinit_tls_libs);
47      }      }
48    return status;    return status;
49  }  }
50    
51    void
52    starttls_init ()
53    {
54      tls_available = mu_check_tls_environment ();
55      if (tls_available)
56        tls_available = mu_init_tls_libs ();
57      if (tls_available)
58        imap4d_capability_add ("STARTTLS");
59    }
60    
61  #endif /* WITH_TLS */  #endif /* WITH_TLS */
62    
63  /* EOF */  /* EOF */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26