diff options
Diffstat (limited to 'src/lib/libssl/ssl_txt.c')
-rw-r--r-- | src/lib/libssl/ssl_txt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_txt.c b/src/lib/libssl/ssl_txt.c index ca67a98d89..7e27857bcf 100644 --- a/src/lib/libssl/ssl_txt.c +++ b/src/lib/libssl/ssl_txt.c | |||
@@ -112,7 +112,7 @@ int SSL_SESSION_print(BIO *bp, SSL_SESSION *x) | |||
112 | sprintf(str,"%02X",x->session_id[i]); | 112 | sprintf(str,"%02X",x->session_id[i]); |
113 | if (BIO_puts(bp,str) <= 0) goto err; | 113 | if (BIO_puts(bp,str) <= 0) goto err; |
114 | } | 114 | } |
115 | if (BIO_puts(bp,"\nSession-ID-ctx: ") <= 0) goto err; | 115 | if (BIO_puts(bp,"\n Session-ID-ctx: ") <= 0) goto err; |
116 | for (i=0; i<x->sid_ctx_length; i++) | 116 | for (i=0; i<x->sid_ctx_length; i++) |
117 | { | 117 | { |
118 | sprintf(str,"%02X",x->sid_ctx[i]); | 118 | sprintf(str,"%02X",x->sid_ctx[i]); |
@@ -163,6 +163,11 @@ int SSL_SESSION_print(BIO *bp, SSL_SESSION *x) | |||
163 | if (BIO_puts(bp,str) <= 0) goto err; | 163 | if (BIO_puts(bp,str) <= 0) goto err; |
164 | } | 164 | } |
165 | if (BIO_puts(bp,"\n") <= 0) goto err; | 165 | if (BIO_puts(bp,"\n") <= 0) goto err; |
166 | |||
167 | if (BIO_puts(bp, " Verify return code ") <= 0) goto err; | ||
168 | sprintf(str, "%ld (%s)\n", x->verify_result, | ||
169 | X509_verify_cert_error_string(x->verify_result)); | ||
170 | if (BIO_puts(bp,str) <= 0) goto err; | ||
166 | 171 | ||
167 | return(1); | 172 | return(1); |
168 | err: | 173 | err: |