/[mailutils]/mailutils/auth/tls.c
ViewVC logotype

Diff of /mailutils/auth/tls.c

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

revision 1.6 by polak, Sun Jan 19 20:25:26 2003 UTC revision 1.7 by gray, Wed Jan 22 13:11:39 2003 UTC
# Line 20  Line 20 
20  #endif  #endif
21    
22  #include <stdio.h>  #include <stdio.h>
23    #include <stdlib.h>
24  #include <unistd.h>  #include <unistd.h>
25  #include <sys/types.h>  #include <sys/types.h>
26  #include <sys/stat.h>  #include <sys/stat.h>
# Line 147  mu_init_tls_libs (void) Line 148  mu_init_tls_libs (void)
148    return !gnutls_global_init (); /* Returns 1 on success */    return !gnutls_global_init (); /* Returns 1 on success */
149  }  }
150    
151  int  void
152  mu_deinit_tls_libs (void)  mu_deinit_tls_libs (void)
153  {  {
154    gnutls_global_deinit ();    gnutls_global_deinit ();
# Line 300  _tls_write (stream_t stream, const char Line 301  _tls_write (stream_t stream, const char
301  static int  static int
302  _tls_flush (stream_t stream)  _tls_flush (stream_t stream)
303  {  {
   struct _tls_stream *s = stream_get_owner (stream);  
304    /* noop */    /* noop */
305    return 0;    return 0;
306  }  }
# Line 314  _tls_close (stream_t stream) Line 314  _tls_close (stream_t stream)
314        gnutls_bye (s->session, GNUTLS_SHUT_RDWR);        gnutls_bye (s->session, GNUTLS_SHUT_RDWR);
315        s->state = state_closed;        s->state = state_closed;
316      }      }
317      return 0;
318  }  }
319    
320  static int  static int

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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