]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/SSL_SESSION_set1_id.pod
Move PRIu64, OSSLzu to e_os.h
[thirdparty/openssl.git] / doc / man3 / SSL_SESSION_set1_id.pod
CommitLineData
fddfc0af
RG
1=pod
2
3=head1 NAME
4
5SSL_SESSION_set1_id - set the SSL session ID
6
7=head1 SYNOPSIS
8
9 #include <openssl/ssl.h>
10
11 int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid,
12 unsigned int sid_len);
13
14=head1 DESCRIPTION
15
16SSL_SESSION_set1_id() sets the the session ID for the B<ssl> SSL/TLS session
17to B<sid> of length B<sid_len>.
18
19=head1 RETURN VALUES
20
21SSL_SESSION_set1_id() returns 1 for success and 0 for failure, for example
22if the supplied session ID length exceeds B<SSL_MAX_SSL_SESSION_ID_LENGTH>.
23
24=head1 SEE ALSO
25
b97fdb57 26L<ssl(7)>
fddfc0af
RG
27
28=head1 HISTORY
29
30SSL_SESSION_set1_id() was first added to OpenSSL 1.1.0
31
32=head1 COPYRIGHT
33
34Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
35
36Licensed under the OpenSSL license (the "License"). You may not use
37this file except in compliance with the License. You can obtain a copy
38in the file LICENSE in the source distribution or at
39L<https://www.openssl.org/source/license.html>.
40
41=cut