common.c (210568) | common.c (214256) |
---|---|
1/*- 2 * Copyright (c) 1998-2004 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) 1998-2004 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/common.c 210568 2010-07-28 16:11:22Z des $"); | 30__FBSDID("$FreeBSD: head/lib/libfetch/common.c 214256 2010-10-24 01:05:10Z emaste $"); |
31 32#include <sys/param.h> 33#include <sys/socket.h> 34#include <sys/time.h> 35#include <sys/uio.h> 36 37#include <netinet/in.h> 38 --- 277 unchanged lines hidden (view full) --- 316 317 318/* 319 * Enable SSL on a connection. 320 */ 321int 322fetch_ssl(conn_t *conn, int verbose) 323{ | 31 32#include <sys/param.h> 33#include <sys/socket.h> 34#include <sys/time.h> 35#include <sys/uio.h> 36 37#include <netinet/in.h> 38 --- 277 unchanged lines hidden (view full) --- 316 317 318/* 319 * Enable SSL on a connection. 320 */ 321int 322fetch_ssl(conn_t *conn, int verbose) 323{ |
324#ifdef WITH_SSL |
|
324 int ret, ssl_err; 325 | 325 int ret, ssl_err; 326 |
326#ifdef WITH_SSL | |
327 /* Init the SSL library and context */ 328 if (!SSL_library_init()){ 329 fprintf(stderr, "SSL library init failed\n"); 330 return (-1); 331 } 332 333 SSL_load_error_strings(); 334 --- 521 unchanged lines hidden --- | 327 /* Init the SSL library and context */ 328 if (!SSL_library_init()){ 329 fprintf(stderr, "SSL library init failed\n"); 330 return (-1); 331 } 332 333 SSL_load_error_strings(); 334 --- 521 unchanged lines hidden --- |