/[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.14 by polak, Sat Aug 30 10:16:18 2003 UTC revision 1.15 by gray, Mon Oct 6 13:14:52 2003 UTC
# Line 24  Line 24 
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>
27    #include <string.h>
28    
29  #include <mailutils/argp.h>  #include <mailutils/argp.h>
30  #include <mailutils/error.h>  #include <mailutils/error.h>
# Line 160  mu_check_tls_environment (void) Line 161  mu_check_tls_environment (void)
161    
162        if (stat (ssl_cert, &st) == -1)        if (stat (ssl_cert, &st) == -1)
163          {          {
164            mu_error ("%s: %s.", ssl_cert, strerror(errno));            mu_error ("%s: %s.", ssl_cert, mu_strerror (errno));
165            return 0;            return 0;
166          }          }
167        if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))        if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))
# Line 172  mu_check_tls_environment (void) Line 173  mu_check_tls_environment (void)
173    
174        if (stat (ssl_key, &st) == -1)        if (stat (ssl_key, &st) == -1)
175          {          {
176            mu_error ("%s: %s.", ssl_key, strerror(errno));            mu_error ("%s: %s.", ssl_key, mu_strerror(errno));
177            return 0;            return 0;
178          }          }
179        if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))        if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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