summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/readconf.c b/readconf.c
index b6abeed06..9d1ee55fa 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.177 2009/06/27 09:35:06 andreas Exp $ */ 1/* $OpenBSD: readconf.c,v 1.183 2010/02/08 10:50:20 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -123,7 +123,7 @@ typedef enum {
123 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, 123 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication,
124 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, 124 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
125 oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, 125 oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
126 oHostKeyAlgorithms, oBindAddress, oSmartcardDevice, 126 oHostKeyAlgorithms, oBindAddress, oPKCS11Provider,
127 oClearAllForwardings, oNoHostAuthenticationForLocalhost, 127 oClearAllForwardings, oNoHostAuthenticationForLocalhost,
128 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, 128 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout,
129 oAddressFamily, oGssAuthentication, oGssDelegateCreds, 129 oAddressFamily, oGssAuthentication, oGssDelegateCreds,
@@ -214,10 +214,12 @@ static struct {
214 { "preferredauthentications", oPreferredAuthentications }, 214 { "preferredauthentications", oPreferredAuthentications },
215 { "hostkeyalgorithms", oHostKeyAlgorithms }, 215 { "hostkeyalgorithms", oHostKeyAlgorithms },
216 { "bindaddress", oBindAddress }, 216 { "bindaddress", oBindAddress },
217#ifdef SMARTCARD 217#ifdef ENABLE_PKCS11
218 { "smartcarddevice", oSmartcardDevice }, 218 { "smartcarddevice", oPKCS11Provider },
219 { "pkcs11provider", oPKCS11Provider },
219#else 220#else
220 { "smartcarddevice", oUnsupported }, 221 { "smartcarddevice", oUnsupported },
222 { "pkcs11provider", oUnsupported },
221#endif 223#endif
222 { "clearallforwardings", oClearAllForwardings }, 224 { "clearallforwardings", oClearAllForwardings },
223 { "enablesshkeysign", oEnableSSHKeysign }, 225 { "enablesshkeysign", oEnableSSHKeysign },
@@ -634,8 +636,8 @@ parse_string:
634 charptr = &options->bind_address; 636 charptr = &options->bind_address;
635 goto parse_string; 637 goto parse_string;
636 638
637 case oSmartcardDevice: 639 case oPKCS11Provider:
638 charptr = &options->smartcard_device; 640 charptr = &options->pkcs11_provider;
639 goto parse_string; 641 goto parse_string;
640 642
641 case oProxyCommand: 643 case oProxyCommand:
@@ -1080,7 +1082,7 @@ initialize_options(Options * options)
1080 options->log_level = SYSLOG_LEVEL_NOT_SET; 1082 options->log_level = SYSLOG_LEVEL_NOT_SET;
1081 options->preferred_authentications = NULL; 1083 options->preferred_authentications = NULL;
1082 options->bind_address = NULL; 1084 options->bind_address = NULL;
1083 options->smartcard_device = NULL; 1085 options->pkcs11_provider = NULL;
1084 options->enable_ssh_keysign = - 1; 1086 options->enable_ssh_keysign = - 1;
1085 options->no_host_authentication_for_localhost = - 1; 1087 options->no_host_authentication_for_localhost = - 1;
1086 options->identities_only = - 1; 1088 options->identities_only = - 1;
@@ -1177,7 +1179,7 @@ fill_default_options(Options * options)
1177 /* options->macs, default set in myproposals.h */ 1179 /* options->macs, default set in myproposals.h */
1178 /* options->hostkeyalgorithms, default set in myproposals.h */ 1180 /* options->hostkeyalgorithms, default set in myproposals.h */
1179 if (options->protocol == SSH_PROTO_UNKNOWN) 1181 if (options->protocol == SSH_PROTO_UNKNOWN)
1180 options->protocol = SSH_PROTO_1|SSH_PROTO_2; 1182 options->protocol = SSH_PROTO_2;
1181 if (options->num_identity_files == 0) { 1183 if (options->num_identity_files == 0) {
1182 if (options->protocol & SSH_PROTO_1) { 1184 if (options->protocol & SSH_PROTO_1) {
1183 len = 2 + strlen(_PATH_SSH_CLIENT_IDENTITY) + 1; 1185 len = 2 + strlen(_PATH_SSH_CLIENT_IDENTITY) + 1;