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> |
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)) |
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)) |