summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-11-15 04:12:32 +0000
committerDamien Miller <djm@mindrot.org>2019-11-15 15:14:00 +1100
commitab3600665387ae34785498558c4409e27f495b0b (patch)
treeff9ef86aa4cacdd590f3f44f0244c60443630048 /ssh-agent.c
parent19f8ec428db835f68c1cfd63587e9880ccd6486c (diff)
upstream: don't consult dlopen whitelist for internal security key
provider; spotted by dtucker@ OpenBSD-Commit-ID: bfe5fbd17e4ff95dd85b9212181652b54444192e
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 97d084230..702dec17d 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.244 2019/11/15 02:38:07 djm Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.245 2019/11/15 04:12:32 djm 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
@@ -646,7 +646,9 @@ process_add_identity(SocketEntry *e)
646 free(sk_provider); 646 free(sk_provider);
647 goto send; 647 goto send;
648 } 648 }
649 if (match_pattern_list(sk_provider, 649 if (strcasecmp(sk_provider, "internal") == 0)
650 debug("%s: internal provider", __func__);
651 else if (match_pattern_list(sk_provider,
650 provider_whitelist, 0) != 1) { 652 provider_whitelist, 0) != 1) {
651 error("Refusing add key: provider %s not whitelisted", 653 error("Refusing add key: provider %s not whitelisted",
652 sk_provider); 654 sk_provider);