summaryrefslogtreecommitdiff
path: root/main/http.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-05-09 18:15:34 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-05-09 18:15:34 +0000
commitf3b55da1b855b12a59f84fd9bf6768eb101cd910 (patch)
treeffe0249aaf92ab65ae2f1e0dd2aaed4f46a8beca /main/http.c
parent57704832176d6c84e0d95e7f78e53f819c70a1e4 (diff)
http.c: Remove dead code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/main/http.c b/main/http.c
index a940ba2e1..783a34cfe 100644
--- a/main/http.c
+++ b/main/http.c
@@ -72,11 +72,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#define DEFAULT_TLS_PORT 8089
#define DEFAULT_SESSION_LIMIT 100
-/* See http.h for more information about the SSL implementation */
-#if defined(HAVE_OPENSSL) && (defined(HAVE_FUNOPEN) || defined(HAVE_FOPENCOOKIE))
-#define DO_SSL /* comment in/out if you want to support ssl */
-#endif
-
static int session_limit = DEFAULT_SESSION_LIMIT;
static int session_count = 0;
@@ -1041,51 +1036,6 @@ cleanup:
return res;
}
-#ifdef DO_SSL
-#if defined(HAVE_FUNOPEN)
-#define HOOK_T int
-#define LEN_T int
-#else
-#define HOOK_T ssize_t
-#define LEN_T size_t
-#endif
-
-/*!
- * replacement read/write functions for SSL support.
- * We use wrappers rather than SSL_read/SSL_write directly so
- * we can put in some debugging.
- */
-/*static HOOK_T ssl_read(void *cookie, char *buf, LEN_T len)
-{
- int i = SSL_read(cookie, buf, len-1);
-#if 0
- if (i >= 0)
- buf[i] = '\0';
- ast_verbose("ssl read size %d returns %d <%s>\n", (int)len, i, buf);
-#endif
- return i;
-}
-
-static HOOK_T ssl_write(void *cookie, const char *buf, LEN_T len)
-{
-#if 0
- char *s = ast_alloca(len+1);
- strncpy(s, buf, len);
- s[len] = '\0';
- ast_verbose("ssl write size %d <%s>\n", (int)len, s);
-#endif
- return SSL_write(cookie, buf, len);
-}
-
-static int ssl_close(void *cookie)
-{
- close(SSL_get_fd(cookie));
- SSL_shutdown(cookie);
- SSL_free(cookie);
- return 0;
-}*/
-#endif /* DO_SSL */
-
static struct ast_variable *parse_cookies(const char *cookies)
{
char *parse = ast_strdupa(cookies);