From: Dr. Stephen Henson Date: Thu, 5 Jun 2008 11:44:53 +0000 (+0000) Subject: Don't show choice dialog if only one cert. X-Git-Tag: OpenSSL_0_9_8i~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bca68e90ccb4bca4699a8ae7183ac4d26fd7c60a;p=oweals%2Fopenssl.git Don't show choice dialog if only one cert. --- 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,