mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
This involves reading the certificates from configuration files through options and handling them similarly as the OpenSSH does when doing the auto pubkey authentication, also in combination with agent or identities only. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
73 lines
2.0 KiB
C
73 lines
2.0 KiB
C
/*
|
|
* config.h - parse the ssh config file
|
|
*
|
|
* This file is part of the SSH Library
|
|
*
|
|
* Copyright (c) 2009-2018 by Andreas Schneider <asn@cryptomilk.org>
|
|
*
|
|
* The SSH Library is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
* option) any later version.
|
|
*
|
|
* The SSH Library 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 Lesser General Public
|
|
* License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with the SSH Library; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
* MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef LIBSSH_CONFIG_H_
|
|
#define LIBSSH_CONFIG_H_
|
|
|
|
|
|
enum ssh_config_opcode_e {
|
|
/* Unknown opcode */
|
|
SOC_UNKNOWN = -3,
|
|
/* Known and not applicable to libssh */
|
|
SOC_NA = -2,
|
|
/* Known but not supported by current libssh version */
|
|
SOC_UNSUPPORTED = -1,
|
|
SOC_HOST,
|
|
SOC_MATCH,
|
|
SOC_HOSTNAME,
|
|
SOC_PORT,
|
|
SOC_USERNAME,
|
|
SOC_IDENTITY,
|
|
SOC_CIPHERS,
|
|
SOC_MACS,
|
|
SOC_COMPRESSION,
|
|
SOC_TIMEOUT,
|
|
SOC_STRICTHOSTKEYCHECK,
|
|
SOC_KNOWNHOSTS,
|
|
SOC_PROXYCOMMAND,
|
|
SOC_PROXYJUMP,
|
|
SOC_GSSAPISERVERIDENTITY,
|
|
SOC_GSSAPICLIENTIDENTITY,
|
|
SOC_GSSAPIDELEGATECREDENTIALS,
|
|
SOC_INCLUDE,
|
|
SOC_BINDADDRESS,
|
|
SOC_GLOBALKNOWNHOSTSFILE,
|
|
SOC_LOGLEVEL,
|
|
SOC_HOSTKEYALGORITHMS,
|
|
SOC_KEXALGORITHMS,
|
|
SOC_GSSAPIAUTHENTICATION,
|
|
SOC_KBDINTERACTIVEAUTHENTICATION,
|
|
SOC_PASSWORDAUTHENTICATION,
|
|
SOC_PUBKEYAUTHENTICATION,
|
|
SOC_PUBKEYACCEPTEDKEYTYPES,
|
|
SOC_REKEYLIMIT,
|
|
SOC_IDENTITYAGENT,
|
|
SOC_IDENTITIESONLY,
|
|
SOC_CONTROLMASTER,
|
|
SOC_CONTROLPATH,
|
|
SOC_CERTIFICATE,
|
|
|
|
SOC_MAX /* Keep this one last in the list */
|
|
};
|
|
#endif /* LIBSSH_CONFIG_H_ */
|