- djm@cvs.openbsd.org 2010/05/11 02:58:04

[auth-rsa.c]
     don't accept certificates marked as "cert-authority" here; ok markus@
This commit is contained in:
Damien Miller 2010-05-21 14:56:25 +10:00
parent 3bcce80b54
commit 3b903827eb
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,9 @@
[regress/Makefile regress/cert-userkey.sh] [regress/Makefile regress/cert-userkey.sh]
regress tests for AuthorizedPrincipalsFile and "principals=" key option. regress tests for AuthorizedPrincipalsFile and "principals=" key option.
feedback and ok markus@ feedback and ok markus@
- djm@cvs.openbsd.org 2010/05/11 02:58:04
[auth-rsa.c]
don't accept certificates marked as "cert-authority" here; ok markus@
20100511 20100511
- (dtucker) [Makefile.in] Bug #1770: Link libopenbsd-compat twice to solve - (dtucker) [Makefile.in] Bug #1770: Link libopenbsd-compat twice to solve

View File

@ -1,4 +1,4 @@
/* $OpenBSD: auth-rsa.c,v 1.75 2010/04/16 01:47:26 djm Exp $ */ /* $OpenBSD: auth-rsa.c,v 1.76 2010/05/11 02:58:04 djm Exp $ */
/* /*
* Author: Tatu Ylonen <ylo@cs.hut.fi> * Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -256,7 +256,8 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey)
*/ */
if (!auth_parse_options(pw, key_options, file, linenum)) if (!auth_parse_options(pw, key_options, file, linenum))
continue; continue;
if (key_is_cert_authority)
continue;
/* break out, this key is allowed */ /* break out, this key is allowed */
allowed = 1; allowed = 1;
break; break;