1 .\" $OpenBSD: SSL_SESSION_new.3,v 1.2 2017/04/10 15:37:55 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: April 10 2017 $
22 .Nd construct a new SSL_SESSION object
26 .Fn SSL_SESSION_new void
29 allocates and initializes an new
32 The reference count is set to 1, the time to the current time, and
33 the timeout to five minutes.
35 When the object is no longer needed, it can be destructed with
36 .Xr SSL_SESSION_free 3 .
39 is used internally, for example by
47 if insufficient memory is available.
52 .Dv ERR_R_MALLOC_FAILURE .
54 .Xr d2i_SSL_SESSION 3 ,
55 .Xr PEM_read_SSL_SESSION 3 ,
57 .Xr SSL_copy_session_id 3 ,
58 .Xr SSL_CTX_add_session 3 ,
59 .Xr SSL_CTX_sess_set_get_cb 3 ,
60 .Xr SSL_get_session 3 ,
61 .Xr SSL_SESSION_free 3 ,
62 .Xr SSL_SESSION_get0_peer 3 ,
63 .Xr SSL_SESSION_get_compress_id 3 ,
64 .Xr SSL_SESSION_get_ex_new_index 3 ,
65 .Xr SSL_SESSION_get_id 3 ,
66 .Xr SSL_SESSION_get_time 3 ,
67 .Xr SSL_SESSION_print 3 ,
68 .Xr SSL_SESSION_set1_id_context 3 ,