Skip to content

Commit

Permalink
Move definition of MBEDTLS_CIPHER_MODE_STREAM
Browse files Browse the repository at this point in the history
Move definition of `MBEDTLS_CIPHER_MODE_STREAM` to header file
(`mbedtls_cipher_internal.h`), because it is used by more than
one file. Raised by TrinityTonic in Mbed-TLS#1719
  • Loading branch information
Ron Eldor authored and Ron Eldor committed Jun 18, 2018
1 parent cbe248a commit f15bc09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions include/mbedtls/cipher_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

#include "cipher.h"

#if defined(MBEDTLS_ARC4_C) || defined(MBEDTLS_CIPHER_NULL_CIPHER)
#define MBEDTLS_CIPHER_MODE_STREAM
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
4 changes: 0 additions & 4 deletions library/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
#define mbedtls_free free
#endif

#if defined(MBEDTLS_ARC4_C) || defined(MBEDTLS_CIPHER_NULL_CIPHER)
#define MBEDTLS_CIPHER_MODE_STREAM
#endif

static int supported_init = 0;

const int *mbedtls_cipher_list( void )
Expand Down

0 comments on commit f15bc09

Please sign in to comment.