diff options
author | Olle Johansson <oej@edvina.net> | 2007-01-24 09:31:26 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2007-01-24 09:31:26 +0000 |
commit | a9849288deac61451559e3f61d9e9a8ac3eef64a (patch) | |
tree | 785d14779cf075516a2aecd9de4635ca7fec1787 /main/http.c | |
parent | 0ddb38ddee75a88e6729903a76cfe570dcd5bbd5 (diff) |
Doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/main/http.c b/main/http.c index 093ddf4d1..30c4e930e 100644 --- a/main/http.c +++ b/main/http.c @@ -58,24 +58,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #define MAX_PREFIX 80 #define DEFAULT_PREFIX "/asterisk" -/*! - * In order to have TLS/SSL support, we need the openssl libraries. - * Still we can decide whether or not to use them by commenting - * in or out the DO_SSL macro. - * TLS/SSL support is basically implemented by reading from a config file - * (currently http.conf) the names of the certificate and cipher to use, - * and then run ssl_setup() to create an appropriate SSL_CTX (ssl_ctx) - * If we support multiple domains, presumably we need to read multiple - * certificates. - * When we are requested to open a TLS socket, we run make_file_from_fd() - * on the socket, to do the necessary setup. At the moment the context's name - * is hardwired in the function, but we can certainly make it into an extra - * parameter to the function. - * - * We declare most of ssl support variables unconditionally, - * because their number is small and this simplifies the code. - */ - +/* 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 @@ -157,6 +140,7 @@ static char *uri_decode(char *buf) } return buf; } + static struct ast_str *static_callback(struct sockaddr_in *req, const char *uri, struct ast_variable *vars, int *status, char **title, int *contentlength) { struct ast_str *result; @@ -298,7 +282,9 @@ struct ast_str *ast_http_error(int status, const char *title, const char *extra_ } /*! \brief - * Link the new uri into the list. They are sorted by length of + * Link the new uri into the list. + * + * They are sorted by length of * the string, not alphabetically. Duplicate entries are not replaced, * but the insertion order (using <= and not just <) makes sure that * more recent insertions hide older ones. |