projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Accept 0600 and 0640 for server private key permissions.
[silc.git]
/
apps
/
silcd
/
serverconfig.c
diff --git
a/apps/silcd/serverconfig.c
b/apps/silcd/serverconfig.c
index 796242a6aaa55532320d378f0de72f2d786ebbf2..30d76af3516cae4c81cbb60a718e938cc66fadf3 100644
(file)
--- a/
apps/silcd/serverconfig.c
+++ b/
apps/silcd/serverconfig.c
@@
-640,10
+640,11
@@
SILC_CONFIG_CALLBACK(fetch_serverinfo)
/* Check the private key file permissions. */
if ((stat(file_tmp, &st)) != -1) {
/* Check the private key file permissions. */
if ((stat(file_tmp, &st)) != -1) {
- if ((st.st_mode & 0777) != 0600) {
+ if (((st.st_mode & 0777) != 0600) &&
+ ((st.st_mode & 0777) != 0640)) {
SILC_SERVER_LOG_ERROR(("Wrong permissions in private key "
"file \"%s\". The permissions must be "
SILC_SERVER_LOG_ERROR(("Wrong permissions in private key "
"file \"%s\". The permissions must be "
- "0600.", file_tmp));
+ "0600
or 0640
.", file_tmp));
return SILC_CONFIG_ESILENT;
}
}
return SILC_CONFIG_ESILENT;
}
}