summaryrefslogtreecommitdiff
path: root/auth-options.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-10-07 12:13:50 +0100
committerColin Watson <cjwatson@debian.org>2014-10-07 12:13:50 +0100
commit487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (patch)
treea2cff6fec1e6c4b4153a170a3e172cfe6bfdec46 /auth-options.c
parent796ba4fd011b5d0d9d78d592ba2f30fc9d5ed2e7 (diff)
parent28453d58058a4d60c3ebe7d7f0c31a510cbf6158 (diff)
Import openssh_6.7p1.orig.tar.gz
Diffstat (limited to 'auth-options.c')
-rw-r--r--auth-options.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/auth-options.c b/auth-options.c
index fa209eaab..f3d9c9df8 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth-options.c,v 1.62 2013/12/19 00:27:57 djm Exp $ */ 1/* $OpenBSD: auth-options.c,v 1.64 2014/07/15 15:54:14 millert 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
@@ -26,9 +26,9 @@
26#include "log.h" 26#include "log.h"
27#include "canohost.h" 27#include "canohost.h"
28#include "buffer.h" 28#include "buffer.h"
29#include "misc.h"
29#include "channels.h" 30#include "channels.h"
30#include "servconf.h" 31#include "servconf.h"
31#include "misc.h"
32#include "key.h" 32#include "key.h"
33#include "auth-options.h" 33#include "auth-options.h"
34#include "hostfile.h" 34#include "hostfile.h"
@@ -325,6 +325,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
325 patterns[i] = '\0'; 325 patterns[i] = '\0';
326 opts++; 326 opts++;
327 p = patterns; 327 p = patterns;
328 /* XXX - add streamlocal support */
328 host = hpdelim(&p); 329 host = hpdelim(&p);
329 if (host == NULL || strlen(host) >= NI_MAXHOST) { 330 if (host == NULL || strlen(host) >= NI_MAXHOST) {
330 debug("%.100s, line %lu: Bad permitopen " 331 debug("%.100s, line %lu: Bad permitopen "
@@ -586,8 +587,8 @@ auth_cert_options(Key *k, struct passwd *pw)
586 587
587 if (key_cert_is_legacy(k)) { 588 if (key_cert_is_legacy(k)) {
588 /* All options are in the one field for v00 certs */ 589 /* All options are in the one field for v00 certs */
589 if (parse_option_list(buffer_ptr(&k->cert->critical), 590 if (parse_option_list(buffer_ptr(k->cert->critical),
590 buffer_len(&k->cert->critical), pw, 591 buffer_len(k->cert->critical), pw,
591 OPTIONS_CRITICAL|OPTIONS_EXTENSIONS, 1, 592 OPTIONS_CRITICAL|OPTIONS_EXTENSIONS, 1,
592 &cert_no_port_forwarding_flag, 593 &cert_no_port_forwarding_flag,
593 &cert_no_agent_forwarding_flag, 594 &cert_no_agent_forwarding_flag,
@@ -599,14 +600,14 @@ auth_cert_options(Key *k, struct passwd *pw)
599 return -1; 600 return -1;
600 } else { 601 } else {
601 /* Separate options and extensions for v01 certs */ 602 /* Separate options and extensions for v01 certs */
602 if (parse_option_list(buffer_ptr(&k->cert->critical), 603 if (parse_option_list(buffer_ptr(k->cert->critical),
603 buffer_len(&k->cert->critical), pw, 604 buffer_len(k->cert->critical), pw,
604 OPTIONS_CRITICAL, 1, NULL, NULL, NULL, NULL, NULL, 605 OPTIONS_CRITICAL, 1, NULL, NULL, NULL, NULL, NULL,
605 &cert_forced_command, 606 &cert_forced_command,
606 &cert_source_address_done) == -1) 607 &cert_source_address_done) == -1)
607 return -1; 608 return -1;
608 if (parse_option_list(buffer_ptr(&k->cert->extensions), 609 if (parse_option_list(buffer_ptr(k->cert->extensions),
609 buffer_len(&k->cert->extensions), pw, 610 buffer_len(k->cert->extensions), pw,
610 OPTIONS_EXTENSIONS, 1, 611 OPTIONS_EXTENSIONS, 1,
611 &cert_no_port_forwarding_flag, 612 &cert_no_port_forwarding_flag,
612 &cert_no_agent_forwarding_flag, 613 &cert_no_agent_forwarding_flag,