projects
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5293b
)
Accept 0600 and 0640 for server private key permissions.
author
Pekka Riikonen
<priikone@silcnet.org>
Tue, 8 Apr 2008 05:01:19 +0000
(08:01 +0300)
committer
Pekka Riikonen
<priikone@silcnet.org>
Tue, 8 Apr 2008 05:01:19 +0000
(08:01 +0300)
apps/silcd/serverconfig.c
patch
|
blob
|
history
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) {
- 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 "
- "0600.", file_tmp));
+ "0600
or 0640
.", file_tmp));
return SILC_CONFIG_ESILENT;
}
}