The compression methods are now a global variable in libssl. This change moves it into OSSL library context. It is necessary to eliminate atexit call from libssl. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24414)
24 lines
613 B
C
24 lines
613 B
C
/*
|
|
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
#ifndef _INTERNAL_COMP_H
|
|
#define _INTERNAL_COMP_H
|
|
|
|
#include <openssl/comp.h>
|
|
|
|
void ossl_comp_zlib_cleanup(void);
|
|
void ossl_comp_brotli_cleanup(void);
|
|
void ossl_comp_zstd_cleanup(void);
|
|
|
|
struct ssl_comp_st {
|
|
int id;
|
|
const char *name;
|
|
COMP_METHOD *method;
|
|
};
|
|
|
|
#endif
|