=pod =head1 NAME SSL_set_session - set a TLS/SSL session to be used during TLS/SSL connect =head1 SYNOPSIS #include int SSL_set_session(SSL *ssl, SSL_SESSION *session); =head1 DESCRIPTION SSL_set_session() sets B to be used when the TLS/SSL connection is to be established. SSL_set_session() is only useful for TLS/SSL clients. When the session is set, the reference count of B is incremented by 1. If the session is not reused, the reference count is decremented again during SSL_connect(). Whether the session was reused can be queried with the L call. If there is already a session set inside B (because it was set with SSL_set_session() before or because the same B was already used for a connection), SSL_SESSION_free() will be called for that session. =head1 NOTES SSL_SESSION objects keep internal link information about the session cache list, when being inserted into one SSL_CTX object's session cache. One SSL_SESSION object, regardless of its reference count, must therefore only be used with one SSL_CTX object (and the SSL objects created from this SSL_CTX object). =head1 RETURN VALUES The following return values can occur: =over 4 =item 0 The operation failed; check the error stack to find out the reason. =item 1 The operation succeeded. =back =head1 SEE ALSO L, L, L, L, L =cut 359bd056505f669'>diff
blob: 30d07560d3e5f7bc3f7f9708046b08004d188d75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112