Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
3376498e
Commit
3376498e
authored
Nov 06, 2016
by
Philipp Schafft
🦁
Browse files
Update: completly abstracted OpenSSL into tls.[ch]
parent
a1aa0196
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/connection.c
View file @
3376498e
...
...
@@ -160,7 +160,7 @@ static unsigned long _next_connection_id(void)
}
#ifdef
HAVE_OPENSSL
#ifdef
ICECAST_CAP_TLS
static
void
get_ssl_certificate
(
ice_config_t
*
config
)
{
config
->
tls_ok
=
ssl_ok
=
0
;
...
...
@@ -213,7 +213,7 @@ static void get_ssl_certificate(ice_config_t *config)
ICECAST_LOG_INFO
(
"No TLS capability. "
"Rebuild Icecast with openSSL support to enable this."
);
}
#endif
/*
HAVE_OPENSSL
*/
#endif
/*
ICECAST_CAP_TLS
*/
/* handlers (default) for reading and writing a connection_t, no encrpytion
...
...
@@ -263,7 +263,7 @@ connection_t *connection_create (sock_t sock, sock_t serversock, char *ip)
*/
void
connection_uses_ssl
(
connection_t
*
con
)
{
#ifdef
HAVE_OPENSSL
#ifdef
ICECAST_CAP_TLS
if
(
con
->
tls
)
return
;
...
...
src/tls.h
View file @
3376498e
...
...
@@ -16,6 +16,12 @@
#include
"common/net/sock.h"
/* Do we have TLS Support? */
#if defined(HAVE_OPENSSL)
#define ICECAST_CAP_TLS
#endif
typedef
struct
tls_ctx_tag
tls_ctx_t
;
typedef
struct
tls_tag
tls_t
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment