1 .\" $OpenBSD: SSL_SESSION_print.3,v 1.1 2016/12/06 23:45:34 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: December 6 2016 $
18 .Dt SSL_SESSION_PRINT 3
21 .Nm SSL_SESSION_print ,
22 .Nm SSL_SESSION_print_fp
23 .Nd print some properties of an SSL_SESSION object
29 .Fa "const SSL_SESSION *session"
32 .Fo SSL_SESSION_print_fp
34 .Fa "const SSL_SESSION *session"
38 prints some properties of
40 in a human-readable format to the
42 including protocol version, cipher name, session ID,
43 session ID context, master key, session ticket lifetime hint,
44 session ticket, start time, timeout, and verify return code.
46 .Fn SSL_SESSION_print_fp
49 except that it prints to the
54 .Fn SSL_SESSION_print_fp
55 return 1 for success or 0 for failure.
57 In some cases, the reason for failure can be determined with
60 .Xr d2i_SSL_SESSION 3 ,
61 .Xr PEM_read_SSL_SESSION 3 ,
62 .Xr SSL_get_session 3 ,
63 .Xr SSL_SESSION_free 3 ,
64 .Xr SSL_SESSION_get_ex_new_index 3 ,
65 .Xr SSL_SESSION_get_time 3 ,