summaryrefslogtreecommitdiffstats
path: root/engines/e_capi.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-06-05 11:45:25 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-06-05 11:45:25 +0000
commitffc2b3e927288b33ed8e2eb2c29ff34fa7214e6b (patch)
treec68c2bbf726cb4abf55974d3c0cdeb93cf63b570 /engines/e_capi.c
parent9ab89286a2616cb1e7843e80da52119da97e16ba (diff)
Update from stable branch.
Diffstat (limited to 'engines/e_capi.c')
-rw-r--r--engines/e_capi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/e_capi.c b/engines/e_capi.c
index be01278ad4..f2e45c9e50 100644
--- a/engines/e_capi.c
+++ b/engines/e_capi.c
@@ -1632,6 +1632,8 @@ static int client_cert_select(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs)
CAPI_KEY *key;
HWND hwnd;
int i, idx = -1;
+ if (sk_X509_num(certs) == 1)
+ return 0;
ctx = ENGINE_get_ex_data(e, capi_idx);
/* Create an in memory store of certificates */
dstore = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,