summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index c62c263a6..4b6c44e90 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.242 2019/11/13 07:53:10 markus Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.243 2019/11/14 21:27:30 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
@@ -299,6 +299,13 @@ provider_sign(const char *provider, struct sshkey *key,
299 *sigp = NULL; 299 *sigp = NULL;
300 *lenp = 0; 300 *lenp = 0;
301 301
302#ifdef ENABLE_SK_INTERNAL
303 if (strcasecmp(provider, "internal") == 0) {
304 return sshsk_sign(provider, key, sigp, lenp,
305 data, datalen, compat);
306 }
307#endif
308
302 helper = getenv("SSH_SK_HELPER"); 309 helper = getenv("SSH_SK_HELPER");
303 if (helper == NULL || strlen(helper) == 0) 310 if (helper == NULL || strlen(helper) == 0)
304 helper = _PATH_SSH_SK_HELPER; 311 helper = _PATH_SSH_SK_HELPER;