diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-08-16 17:44:19 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-08-16 17:44:19 -0300 |
commit | 1ee9ea117537fb38962fa2cffe81ff93aafe4ee1 (patch) | |
tree | 020f341d5a395f3c198b4ea004ea93434fc892cf /pcr/openssh-knock | |
parent | d0d3a05bb0f290e12e20a8221f430549b203bab7 (diff) | |
download | abslibre-1ee9ea117537fb38962fa2cffe81ff93aafe4ee1.tar.gz abslibre-1ee9ea117537fb38962fa2cffe81ff93aafe4ee1.tar.bz2 abslibre-1ee9ea117537fb38962fa2cffe81ff93aafe4ee1.zip |
openssh-knock-7.0p1-1: updating version
Diffstat (limited to 'pcr/openssh-knock')
-rw-r--r-- | pcr/openssh-knock/PKGBUILD | 13 | ||||
-rw-r--r-- | pcr/openssh-knock/keyboard-interactive.patch | 52 |
2 files changed, 5 insertions, 60 deletions
diff --git a/pcr/openssh-knock/PKGBUILD b/pcr/openssh-knock/PKGBUILD index 2a8368d79..a3c0cc8f5 100644 --- a/pcr/openssh-knock/PKGBUILD +++ b/pcr/openssh-knock/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 242452 2015-07-23 02:38:36Z bisson $ +# $Id: PKGBUILD 243157 2015-08-11 14:15:07Z bisson $ # Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org> # Contributor (Arch): Aaron Griffin <aaron@archlinux.org> # Contributor (Arch): judd <jvinet@zeroflux.org> @@ -7,8 +7,8 @@ _pkgname=openssh pkgname=openssh-knock -pkgver=6.9p1 -pkgrel=2 +pkgver=7.0p1 +pkgrel=1 pkgdesc='Free version of the SSH connectivity tools, with support for stealth TCP sockets' url='http://www.openssh.org/portable.html' license=('custom:BSD') @@ -24,16 +24,14 @@ validpgpkeys=('59C2118ED206D927E667EBE3D3E5F56B6D920D30' source=("ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${_pkgname}-${pkgver}.tar.gz"{,.asc} #"http://gnunet.org/sites/default/files/${_pkgname}-linux-knock-patch_0.diff" "https://repo.parabola.nu/other/knock/patches/openssh/${_pkgname}-${pkgver}-linux-knock-patch.diff"{,.sig} - 'keyboard-interactive.patch' 'sshdgenkeys.service' 'sshd@.service' 'sshd.service' 'sshd.socket' 'sshd.conf' 'sshd.pam') -sha1sums=('86ab57f00d0fd9bf302760f2f6deac1b6e9df265' 'SKIP' - '149450fd40099e274a09b033cd2ff6e7439e64e8' 'SKIP' - 'ef9e9327a943839abb3d202783b318e9cd2bdcd5' +sha1sums=('d8337c9eab91d360d104f6dd805f8b32089c063c' 'SKIP' + '36fc52e849ef5baf20f48b3d8bd0568849d45dd6' 'SKIP' 'cc1ceec606c98c7407e7ac21ade23aed81e31405' '6a0ff3305692cf83aca96e10f3bb51e1c26fccda' 'ec49c6beba923e201505f5669cea48cad29014db' @@ -47,7 +45,6 @@ install=install prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" - patch -p1 -i ../keyboard-interactive.patch patch -Np1 -i "${srcdir}"/${_pkgname}-${pkgver}-linux-knock-patch.diff } diff --git a/pcr/openssh-knock/keyboard-interactive.patch b/pcr/openssh-knock/keyboard-interactive.patch deleted file mode 100644 index 4adafebc1..000000000 --- a/pcr/openssh-knock/keyboard-interactive.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 5b64f85bb811246c59ebab70aed331f26ba37b18 Mon Sep 17 00:00:00 2001 -From: "djm@openbsd.org" <djm@openbsd.org> -Date: Sat, 18 Jul 2015 07:57:14 +0000 -Subject: upstream commit - -only query each keyboard-interactive device once per - authentication request regardless of how many times it is listed; ok markus@ - -Upstream-ID: d73fafba6e86030436ff673656ec1f33d9ffeda1 ---- - auth2-chall.c | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) - -diff --git a/auth2-chall.c b/auth2-chall.c -index ddabe1a..4aff09d 100644 ---- a/auth2-chall.c -+++ b/auth2-chall.c -@@ -1,4 +1,4 @@ --/* $OpenBSD: auth2-chall.c,v 1.42 2015/01/19 20:07:45 markus Exp $ */ -+/* $OpenBSD: auth2-chall.c,v 1.43 2015/07/18 07:57:14 djm Exp $ */ - /* - * Copyright (c) 2001 Markus Friedl. All rights reserved. - * Copyright (c) 2001 Per Allansson. All rights reserved. -@@ -83,6 +83,7 @@ struct KbdintAuthctxt - void *ctxt; - KbdintDevice *device; - u_int nreq; -+ u_int devices_done; - }; - - #ifdef USE_PAM -@@ -169,11 +170,15 @@ kbdint_next_device(Authctxt *authctxt, KbdintAuthctxt *kbdintctxt) - if (len == 0) - break; - for (i = 0; devices[i]; i++) { -- if (!auth2_method_allowed(authctxt, -+ if ((kbdintctxt->devices_done & (1 << i)) != 0 || -+ !auth2_method_allowed(authctxt, - "keyboard-interactive", devices[i]->name)) - continue; -- if (strncmp(kbdintctxt->devices, devices[i]->name, len) == 0) -+ if (strncmp(kbdintctxt->devices, devices[i]->name, -+ len) == 0) { - kbdintctxt->device = devices[i]; -+ kbdintctxt->devices_done |= 1 << i; -+ } - } - t = kbdintctxt->devices; - kbdintctxt->devices = t[len] ? xstrdup(t+len+1) : NULL; --- -cgit v0.11.2 - |