diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-09-26 18:12:35 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-11-09 20:10:16 +0100 |
commit | 9d3ec04db4d383050da737ca4c728ad564d0faad (patch) | |
tree | 2020445d7c377a0bd5019277e3c29d75e802f42a /src/libwaitress/waitress.h | |
parent | d55bc3b41b6dd5e23a1c0c5c20d2a507864d5367 (diff) | |
download | pianobar-9d3ec04db4d383050da737ca4c728ad564d0faad.tar.gz pianobar-9d3ec04db4d383050da737ca4c728ad564d0faad.tar.bz2 pianobar-9d3ec04db4d383050da737ca4c728ad564d0faad.zip |
waitress: move credentials init to WaitressInit
Reusable.
Diffstat (limited to 'src/libwaitress/waitress.h')
-rw-r--r-- | src/libwaitress/waitress.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libwaitress/waitress.h b/src/libwaitress/waitress.h index 9523ede..eb79393 100644 --- a/src/libwaitress/waitress.h +++ b/src/libwaitress/waitress.h @@ -93,6 +93,10 @@ typedef struct { void *data; WaitressCbReturn_t (*callback) (void *, size_t, void *); int timeout; +#ifdef ENABLE_TLS + gnutls_certificate_credentials_t tlsCred; +#endif + /* per-request data */ struct { size_t contentLength, contentReceived, chunkSize; @@ -100,7 +104,6 @@ typedef struct { char *buf; #ifdef ENABLE_TLS gnutls_session_t tlsSession; - gnutls_certificate_credentials_t tlsCred; #endif /* first argument is WaitressHandle_t, but that's not defined here */ WaitressHandlerReturn_t (*dataHandler) (void *, char *, const size_t); @@ -111,7 +114,7 @@ typedef struct { } request; } WaitressHandle_t; -void WaitressInit (WaitressHandle_t *); +void WaitressInit (WaitressHandle_t *, const char *); void WaitressFree (WaitressHandle_t *); bool WaitressSetProxy (WaitressHandle_t *, const char *); char *WaitressUrlEncode (const char *); |