summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_txt.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-04-16 20:39:09 +0000
committertedu <tedu@openbsd.org>2014-04-16 20:39:09 +0000
commitf6b1586d31f749c2562d0274e25099bb35fc2537 (patch)
tree12ff1c4614d51287b44c1c37574c72018b174a4d /lib/libssl/ssl_txt.c
parentClean up dangerous strncpy use. This included a use where the resulting (diff)
downloadwireguard-openbsd-f6b1586d31f749c2562d0274e25099bb35fc2537.tar.xz
wireguard-openbsd-f6b1586d31f749c2562d0274e25099bb35fc2537.zip
add back SRP. i was being too greedy.
Diffstat (limited to 'lib/libssl/ssl_txt.c')
-rw-r--r--lib/libssl/ssl_txt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libssl/ssl_txt.c b/lib/libssl/ssl_txt.c
index d3f304b73d9..91664ffe432 100644
--- a/lib/libssl/ssl_txt.c
+++ b/lib/libssl/ssl_txt.c
@@ -193,6 +193,12 @@ SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
if (BIO_printf(bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None")
<= 0) goto err;
#endif
+#ifndef OPENSSL_NO_SRP
+ if (BIO_puts(bp, "\n SRP username: ")
+ <= 0) goto err;
+ if (BIO_printf(bp, "%s", x->srp_username ? x->srp_username : "None")
+ <= 0) goto err;
+#endif
#ifndef OPENSSL_NO_TLSEXT
if (x->tlsext_tick_lifetime_hint) {
if (BIO_printf(bp,