summaryrefslogtreecommitdiffstats
path: root/apps/s_cb.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-04-06 20:15:50 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-04-06 20:15:50 +0000
commite46c807e4f4eedb36dec70576d1562f252ff69a1 (patch)
treef55f310338ce96d1011f4b574102161fabbc0817 /apps/s_cb.c
parentc132ca95c05cfcd8029a2670267d3e67b2b9f461 (diff)
Add support for automatic ECDH temporary key parameter selection. When
enabled instead of requiring an application to hard code a (possibly inappropriate) parameter set and delve into EC internals we just automatically use the preferred curve. (backport from HEAD)
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r--apps/s_cb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 141c222895..4395f194aa 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -355,6 +355,8 @@ int ssl_print_curves(BIO *out, SSL *s)
cname = OBJ_nid2sn(nid);
BIO_printf(out, "%s", cname);
}
+ if (ncurves == 0)
+ BIO_puts(out, "NONE");
BIO_puts(out, "\n");
return 1;
}