summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-03-31 10:49:51 +0100
committerColin Watson <cjwatson@debian.org>2010-03-31 10:49:51 +0100
commit56ea360619c4bbe1b604add62d3cbf472392617f (patch)
tree3d7450c164b851412cb8ca28f87547c62595659d
parentefd3d4522636ae029488c2e9730b60c88e257d2e (diff)
ssh-vulnkey.patch: update another call to auth_key_is_revoked
-rw-r--r--auth2-pubkey.c3
-rw-r--r--debian/patches/ssh-vulnkey.patch8
2 files changed, 8 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index ae0638825..b6ed62857 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -327,7 +327,8 @@ user_key_allowed(struct passwd *pw, Key *key)
327 327
328 if (auth_key_is_revoked(key, 0)) 328 if (auth_key_is_revoked(key, 0))
329 return 0; 329 return 0;
330 if (key_is_cert(key) && auth_key_is_revoked(key->cert->signature_key)) 330 if (key_is_cert(key) &&
331 auth_key_is_revoked(key->cert->signature_key, 0))
331 return 0; 332 return 0;
332 333
333 success = user_cert_trusted_ca(pw, key); 334 success = user_cert_trusted_ca(pw, key);
diff --git a/debian/patches/ssh-vulnkey.patch b/debian/patches/ssh-vulnkey.patch
index c2842a4cf..73a30186b 100644
--- a/debian/patches/ssh-vulnkey.patch
+++ b/debian/patches/ssh-vulnkey.patch
@@ -198,15 +198,19 @@ Index: b/auth2-pubkey.c
198=================================================================== 198===================================================================
199--- a/auth2-pubkey.c 199--- a/auth2-pubkey.c
200+++ b/auth2-pubkey.c 200+++ b/auth2-pubkey.c
201@@ -325,7 +325,7 @@ 201@@ -325,9 +325,10 @@
202 int success; 202 int success;
203 char *file; 203 char *file;
204 204
205- if (auth_key_is_revoked(key)) 205- if (auth_key_is_revoked(key))
206+ if (auth_key_is_revoked(key, 0)) 206+ if (auth_key_is_revoked(key, 0))
207 return 0; 207 return 0;
208 if (key_is_cert(key) && auth_key_is_revoked(key->cert->signature_key)) 208- if (key_is_cert(key) && auth_key_is_revoked(key->cert->signature_key))
209+ if (key_is_cert(key) &&
210+ auth_key_is_revoked(key->cert->signature_key, 0))
209 return 0; 211 return 0;
212
213 success = user_cert_trusted_ca(pw, key);
210Index: b/authfile.c 214Index: b/authfile.c
211=================================================================== 215===================================================================
212--- a/authfile.c 216--- a/authfile.c