http.c (104404) | http.c (106044) |
---|---|
1/*- 2 * Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/lib/libfetch/http.c 104404 2002-10-03 10:42:19Z ru $"); | 30__FBSDID("$FreeBSD: head/lib/libfetch/http.c 106044 2002-10-27 15:43:40Z des $"); |
31 32/* 33 * The following copyright applies to the base64 code: 34 * 35 *- 36 * Copyright 1997 Massachusetts Institute of Technology 37 * 38 * Permission to use, copy, modify, and distribute this software and --- 135 unchanged lines hidden (view full) --- 174 175 if (io->bufsize >= len) 176 return (0); 177 178 if ((tmp = realloc(io->buf, len)) == NULL) 179 return (-1); 180 io->buf = tmp; 181 io->bufsize = len; | 31 32/* 33 * The following copyright applies to the base64 code: 34 * 35 *- 36 * Copyright 1997 Massachusetts Institute of Technology 37 * 38 * Permission to use, copy, modify, and distribute this software and --- 135 unchanged lines hidden (view full) --- 174 175 if (io->bufsize >= len) 176 return (0); 177 178 if ((tmp = realloc(io->buf, len)) == NULL) 179 return (-1); 180 io->buf = tmp; 181 io->bufsize = len; |
182 return (0); |
|
182} 183 184/* 185 * Fill the input buffer, do chunk decoding on the fly 186 */ 187static int 188_http_fillbuf(struct httpio *io, size_t len) 189{ --- 953 unchanged lines hidden --- | 183} 184 185/* 186 * Fill the input buffer, do chunk decoding on the fly 187 */ 188static int 189_http_fillbuf(struct httpio *io, size_t len) 190{ --- 953 unchanged lines hidden --- |