1=pod
2
3=head1 NAME
4
5SSL_SESSION_get_compress_id
6- get details about the compression associated with a session
7
8=head1 SYNOPSIS
9
10 #include <openssl/ssl.h>
11
12 unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
13
14=head1 DESCRIPTION
15
16If compression has been negotiated for an ssl session then
17SSL_SESSION_get_compress_id() will return the id for the compression method or
180 otherwise. The only built-in supported compression method is zlib which has an
19id of 1.
20
21=head1 RETURN VALUES
22
23SSL_SESSION_get_compress_id() returns the id of the compression method or 0 if
24none.
25
26=head1 SEE ALSO
27
28L<ssl(7)>
29
30=head1 COPYRIGHT
31
32Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
33
34Licensed under the Apache License 2.0 (the "License").  You may not use
35this file except in compliance with the License.  You can obtain a copy
36in the file LICENSE in the source distribution or at
37L<https://www.openssl.org/source/license.html>.
38
39=cut
40