/* * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (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 */structcomp_method_st{inttype;/* NID for compression library */constchar*name;/* A text string to identify the library */int(*init)(COMP_CTX*ctx);void(*finish)(COMP_CTX*ctx);int(*compress)(COMP_CTX*ctx,unsignedchar*out,unsignedintolen,unsignedchar*in,unsignedintilen);int(*expand)(COMP_CTX*ctx,unsignedchar*out,unsignedintolen,unsignedchar*in,unsignedintilen);};structcomp_ctx_st{structcomp_method_st*meth;unsignedlongcompress_in;unsignedlongcompress_out;unsignedlongexpand_in;unsignedlongexpand_out;void*data;};