all the directives are copied in with their types. working on validators now.
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
/*
|
||||
SSHSecure - a program to harden OpenSSH from defaults
|
||||
Copyright (C) 2020 Brent Saner
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package sharedconsts
|
||||
|
||||
import (
|
||||
@@ -11,3 +29,22 @@ const (
|
||||
)
|
||||
|
||||
var IDCmnt = string(fmt.Sprintf("Autogenerated by %v (%v)", projName, projUrl))
|
||||
|
||||
// Common file/directory paths.
|
||||
const (
|
||||
// System-wide files.
|
||||
LockFile string = "/tmp/.sshsecure.lck"
|
||||
SysSshConfDir string = "/etc/ssh"
|
||||
// The following are joined with SysSshConfDir.
|
||||
SshdConfFile string = "sshd_config"
|
||||
SshConfFile string = "ssh_config"
|
||||
HostEd25519File string = "ssh_host_ed25519_key"
|
||||
HostRsaFile string = "ssh_host_rsa_key"
|
||||
ModuliFile string = "moduli"
|
||||
// Invoking user's files.
|
||||
UserSshConfDir string = "~/.ssh"
|
||||
// The following are joined with userSshConfDir.
|
||||
UserSshConfFile string = "config"
|
||||
UserEd25519File string = "id_ed25519"
|
||||
UserRsaFile string = "id_rsa"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user