tcptls.h: Repair ./configure --with-ssl=PATH.

asterisk/tcptls.h was included (explicitly, implicitly, or transitively). Those
inclusions got replaced by forward declarations. As side effect, the inclusions
got completed.

ASTERISK-27878

Change-Id: I9d102728e30336d6522e5e4ae9e964013a0835f7
This commit is contained in:
Alexander Traud
2018-05-28 17:29:23 +02:00
parent 4ea98e49f1
commit 24503fb600
5 changed files with 71 additions and 42 deletions

View File

@@ -18,12 +18,23 @@
#include "asterisk.h"
#include <fcntl.h>
#include <stdarg.h>
#include "asterisk/iostream.h" /* for DO_SSL */
#include "asterisk/utils.h"
#include "asterisk/astobj2.h"
#include "asterisk/iostream.h"
#include <fcntl.h> /* for O_NONBLOCK */
#ifdef DO_SSL
#include <openssl/err.h> /* for ERR_error_string */
#include <openssl/opensslv.h> /* for OPENSSL_VERSION_NUMBER */
#include <openssl/ssl.h> /* for SSL_get_error, SSL_free, SSL_... */
#endif
#include <sys/socket.h> /* for shutdown, SHUT_RDWR */
#include <sys/time.h> /* for timeval */
#include "asterisk/astobj2.h" /* for ao2_alloc_options, ao2_alloc_... */
#include "asterisk/logger.h" /* for ast_debug, ast_log, LOG_ERROR */
#include "asterisk/strings.h" /* for asterisk/threadstorage.h */
#include "asterisk/threadstorage.h" /* for ast_threadstorage_get, AST_TH... */
#include "asterisk/time.h" /* for ast_remaining_ms, ast_tvnow */
#include "asterisk/utils.h" /* for ast_wait_for_input, ast_wait_... */
struct ast_iostream {
SSL *ssl;