~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to lib/gnutls_compress.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2000, 2004, 2005, 2007, 2008 Free Software Foundation
 
2
 * Copyright (C) 2000, 2004, 2005, 2007, 2008, 2010 Free Software
 
3
 * Foundation, Inc.
3
4
 *
4
5
 * Author: Nikos Mavrogiannopoulos
5
6
 *
6
 
 * This file is part of GNUTLS.
 
7
 * This file is part of GnuTLS.
7
8
 *
8
 
 * The GNUTLS library is free software; you can redistribute it and/or
 
9
 * The GnuTLS is free software; you can redistribute it and/or
9
10
 * modify it under the terms of the GNU Lesser General Public License
10
11
 * as published by the Free Software Foundation; either version 2.1 of
11
12
 * the License, or (at your option) any later version.
120
121
/* Compression Functions */
121
122
 
122
123
/**
123
 
 * gnutls_compression_get_name - Returns a string with the name of the specified compression algorithm
 
124
 * gnutls_compression_get_name:
124
125
 * @algorithm: is a Compression algorithm
125
126
 *
126
127
 * Convert a #gnutls_compression_method_t value to a string.
140
141
}
141
142
 
142
143
/**
143
 
 * gnutls_compression_get_id - Returns the gnutls id of the specified in string algorithm
 
144
 * gnutls_compression_get_id:
144
145
 * @name: is a compression method name
145
146
 *
146
147
 * The names are compared in a case insensitive way.
162
163
}
163
164
 
164
165
/**
165
 
 * gnutls_compression_list - Get a list of supported compression methods
 
166
 * gnutls_compression_list:
166
167
 *
167
168
 * Get a list of compression methods.  Note that to be able to use LZO
168
169
 * compression, you must link to libgnutls-extra and call
268
269
  for (i = j = 0; i < SUPPORTED_COMPRESSION_METHODS; i++)
269
270
    {
270
271
      int tmp =
271
 
        _gnutls_compression_get_num (session->internals.priorities.
272
 
                                     compression.priority[i]);
 
272
        _gnutls_compression_get_num (session->internals.
 
273
                                     priorities.compression.priority[i]);
273
274
 
274
275
      /* remove private compression algorithms, if requested.
275
276
       */