diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-07-15 15:29:29 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-07-15 15:29:29 +0000 |
commit | 3e0c6e040456fa12e2039526ecc666ac318ffed6 (patch) | |
tree | 8946a9ca46bacd6ecc9d06726291c26812a6cc29 /lib/gnutls_compress.c | |
parent | 099900892bc87e627c01285e75a0c8185eef112b (diff) | |
download | gnutls-3e0c6e040456fa12e2039526ecc666ac318ffed6.tar.gz |
Fixes in zlib compression code. gnutls_global_init_extra() in libgnutls-extra fails if library versions do not match. Semantic changes in gnutls_record_set_max_size(). The requested size is now immediately enforced at the output buffers.
Diffstat (limited to 'lib/gnutls_compress.c')
-rw-r--r-- | lib/gnutls_compress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_compress.c b/lib/gnutls_compress.c index cebc3d21ea..03c34f394e 100644 --- a/lib/gnutls_compress.c +++ b/lib/gnutls_compress.c @@ -41,7 +41,7 @@ int _gnutls_m_plaintext2compressed(GNUTLS_STATE state, data=NULL; size = _gnutls_compress( state->connection_state.write_compression_state, - plaintext.data, plaintext.size, &data, MAX_RECORD_SIZE+1024); + plaintext.data, plaintext.size, &data, MAX_RECORD_SEND_SIZE+1024); if (size < 0) { gnutls_assert(); return GNUTLS_E_COMPRESSION_FAILED; @@ -63,7 +63,7 @@ int _gnutls_m_compressed2plaintext(GNUTLS_STATE state, data=NULL; size = _gnutls_decompress( state->connection_state.read_compression_state, - compressed.data, compressed.size, &data, MAX_RECORD_SIZE); + compressed.data, compressed.size, &data, MAX_RECORD_RECV_SIZE); if (size < 0) { gnutls_assert(); return GNUTLS_E_DECOMPRESSION_FAILED; |