2 * Copyright 2001-2007 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file saml/saml2/binding/SAML2Redirect.h
20 * SAML 2.0 HTTP Redirect compression functionality
23 #include <saml/base.h>
29 * Deflates data in accordance with RFC1951. The caller must free the
30 * resulting buffer using delete[]
32 * @param in the data to compress
33 * @param in_len length of input data
34 * @param out_len will contain the length of the resulting data
35 * @return allocated buffer of out_len bytes containing deflated data
37 char* deflate(char* in, unsigned int in_len, unsigned int* out_len);
40 * Inflates data compressed in accordance with RFC1951 and sends the
41 * results to an output stream.
43 * @param in the data to inflate
44 * @param in_len length of input data
45 * @param out reference to output stream to receive data
46 * @return number of bytes written to stream
48 unsigned int inflate(char* in, unsigned int in_len, std::ostream& out);