diff options
Diffstat (limited to 'src/daemon/https/tls/gnutls_cipher.c')
-rw-r--r-- | src/daemon/https/tls/gnutls_cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/https/tls/gnutls_cipher.c b/src/daemon/https/tls/gnutls_cipher.c index 94e87eb3..9ff19759 100644 --- a/src/daemon/https/tls/gnutls_cipher.c +++ b/src/daemon/https/tls/gnutls_cipher.c | |||
@@ -244,7 +244,7 @@ calc_enc_length (MHD_gtls_session_t session, int data_size, | |||
244 | 244 | ||
245 | break; | 245 | break; |
246 | case CIPHER_BLOCK: | 246 | case CIPHER_BLOCK: |
247 | if (MHD_gc_nonce (&rnd, 1) != GC_OK) | 247 | if (MHD_gc_nonce ((char*) &rnd, 1) != GC_OK) |
248 | { | 248 | { |
249 | MHD_gnutls_assert (); | 249 | MHD_gnutls_assert (); |
250 | return GNUTLS_E_RANDOM_FAILED; | 250 | return GNUTLS_E_RANDOM_FAILED; |
@@ -377,7 +377,7 @@ MHD_gtls_compressed2ciphertext (MHD_gtls_session_t session, | |||
377 | { | 377 | { |
378 | /* copy the random IV. | 378 | /* copy the random IV. |
379 | */ | 379 | */ |
380 | if (MHD_gc_nonce (data_ptr, blocksize) != GC_OK) | 380 | if (MHD_gc_nonce ((char*) data_ptr, blocksize) != GC_OK) |
381 | { | 381 | { |
382 | MHD_gnutls_assert (); | 382 | MHD_gnutls_assert (); |
383 | return GNUTLS_E_RANDOM_FAILED; | 383 | return GNUTLS_E_RANDOM_FAILED; |