Lines 7-12
Link Here
|
7 |
#ifdef CONFIG_OPENSSL |
7 |
#ifdef CONFIG_OPENSSL |
8 |
#include <openssl/ssl.h> |
8 |
#include <openssl/ssl.h> |
9 |
#include <openssl/rand.h> |
9 |
#include <openssl/rand.h> |
|
|
10 |
#include <openssl/opensslv.h> |
10 |
#elif defined(CONFIG_GNUTLS) |
11 |
#elif defined(CONFIG_GNUTLS) |
11 |
#include <gnutls/gnutls.h> |
12 |
#include <gnutls/gnutls.h> |
12 |
#include <gnutls/x509.h> |
13 |
#include <gnutls/x509.h> |
Lines 61-67
Link Here
|
61 |
} |
62 |
} |
62 |
#endif |
63 |
#endif |
63 |
|
64 |
|
|
|
65 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
64 |
SSLeay_add_ssl_algorithms(); |
66 |
SSLeay_add_ssl_algorithms(); |
|
|
67 |
#endif |
65 |
context = SSL_CTX_new(SSLv23_client_method()); |
68 |
context = SSL_CTX_new(SSLv23_client_method()); |
66 |
SSL_CTX_set_options(context, SSL_OP_ALL); |
69 |
SSL_CTX_set_options(context, SSL_OP_ALL); |
67 |
SSL_CTX_set_default_verify_paths(context); |
70 |
SSL_CTX_set_default_verify_paths(context); |