diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-11-11 14:45:21 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-11-11 15:24:50 +0100 |
commit | a0e4f1e0f5989505f4aab10d64194b635f9af53c (patch) | |
tree | 6a7fe01f25d632b8fe40859af96ab96a3576022b /src/libwaitress/waitress.h | |
parent | fb1b9c541346b3cfc80305ef12ee87ced70d5037 (diff) | |
download | pianobar-a0e4f1e0f5989505f4aab10d64194b635f9af53c.tar.gz pianobar-a0e4f1e0f5989505f4aab10d64194b635f9af53c.tar.bz2 pianobar-a0e4f1e0f5989505f4aab10d64194b635f9af53c.zip |
waitress: Fingerprint check
Reduces memory usage, protects against 0wned CA's and avoids ca-bundle
confusion.
Closes #175
Diffstat (limited to 'src/libwaitress/waitress.h')
-rw-r--r-- | src/libwaitress/waitress.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libwaitress/waitress.h b/src/libwaitress/waitress.h index e1cf303..7e4401a 100644 --- a/src/libwaitress/waitress.h +++ b/src/libwaitress/waitress.h @@ -92,8 +92,8 @@ typedef struct { void *data; WaitressCbReturn_t (*callback) (void *, size_t, void *); int timeout; + const char *tlsFingerprint; gnutls_certificate_credentials_t tlsCred; - bool tlsInitialized; /* per-request data */ struct { @@ -110,7 +110,7 @@ typedef struct { } request; } WaitressHandle_t; -WaitressReturn_t WaitressInit (WaitressHandle_t *, const char *); +void WaitressInit (WaitressHandle_t *); void WaitressFree (WaitressHandle_t *); bool WaitressSetProxy (WaitressHandle_t *, const char *); char *WaitressUrlEncode (const char *); |