projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f67ec
)
Don't show choice dialog if only one cert.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 5 Jun 2008 11:44:53 +0000
(11:44 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 5 Jun 2008 11:44:53 +0000
(11:44 +0000)
engines/e_capi.c
patch
|
blob
|
history
diff --git
a/engines/e_capi.c
b/engines/e_capi.c
index be01278ad4643980e951e9531227405b7292c5a4..f2e45c9e50bcc1315f4a94cffdbf87e7af756c47 100644
(file)
--- 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,