Deleted Added
full compact
common.h (236103) common.h (256257)
1/*-
2 * Copyright (c) 1998-2011 Dag-Erling 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

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 *
1/*-
2 * Copyright (c) 1998-2011 Dag-Erling 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

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: stable/9/lib/libfetch/common.h 236103 2012-05-26 16:34:39Z des $
28 * $FreeBSD: stable/9/lib/libfetch/common.h 256257 2013-10-10 09:42:41Z glebius $
29 */
30
31#ifndef _COMMON_H_INCLUDED
32#define _COMMON_H_INCLUDED
33
34#define FTP_DEFAULT_PORT 21
35#define HTTP_DEFAULT_PORT 80
36#define FTP_DEFAULT_PROXY_PORT 21

--- 45 unchanged lines hidden (view full) ---

82void fetch_syserr(void);
83void fetch_info(const char *, ...);
84int fetch_default_port(const char *);
85int fetch_default_proxy_port(const char *);
86int fetch_bind(int, int, const char *);
87conn_t *fetch_connect(const char *, int, int, int);
88conn_t *fetch_reopen(int);
89conn_t *fetch_ref(conn_t *);
29 */
30
31#ifndef _COMMON_H_INCLUDED
32#define _COMMON_H_INCLUDED
33
34#define FTP_DEFAULT_PORT 21
35#define HTTP_DEFAULT_PORT 80
36#define FTP_DEFAULT_PROXY_PORT 21

--- 45 unchanged lines hidden (view full) ---

82void fetch_syserr(void);
83void fetch_info(const char *, ...);
84int fetch_default_port(const char *);
85int fetch_default_proxy_port(const char *);
86int fetch_bind(int, int, const char *);
87conn_t *fetch_connect(const char *, int, int, int);
88conn_t *fetch_reopen(int);
89conn_t *fetch_ref(conn_t *);
90int fetch_ssl(conn_t *, int);
90#ifdef WITH_SSL
91int fetch_ssl_cb_verify_crt(int, X509_STORE_CTX*);
92#endif
93int fetch_ssl(conn_t *, const struct url *, int);
91ssize_t fetch_read(conn_t *, char *, size_t);
92int fetch_getln(conn_t *);
93ssize_t fetch_write(conn_t *, const char *, size_t);
94ssize_t fetch_writev(conn_t *, struct iovec *, int);
95int fetch_putln(conn_t *, const char *, size_t);
96int fetch_close(conn_t *);
97int fetch_add_entry(struct url_ent **, int *, int *,
98 const char *, struct url_stat *);

--- 34 unchanged lines hidden ---
94ssize_t fetch_read(conn_t *, char *, size_t);
95int fetch_getln(conn_t *);
96ssize_t fetch_write(conn_t *, const char *, size_t);
97ssize_t fetch_writev(conn_t *, struct iovec *, int);
98int fetch_putln(conn_t *, const char *, size_t);
99int fetch_close(conn_t *);
100int fetch_add_entry(struct url_ent **, int *, int *,
101 const char *, struct url_stat *);

--- 34 unchanged lines hidden ---