mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 21:25:40 +01:00
Add missing extern "C" guard to new headers
This commit is contained in:
parent
deda80e80d
commit
a9ed291d2d
@ -32,6 +32,10 @@
|
|||||||
#define MBEDTLS_ERR_AEAD_CHACHA20_POLY1305_BAD_INPUT_DATA -0x00047 /**< Invalid input parameter(s). */
|
#define MBEDTLS_ERR_AEAD_CHACHA20_POLY1305_BAD_INPUT_DATA -0x00047 /**< Invalid input parameter(s). */
|
||||||
#define MBEDTLS_ERR_AEAD_CHACHA20_POLY1305_BAD_STATE -0x00049 /**< The requested operation is not permitted in the current state */
|
#define MBEDTLS_ERR_AEAD_CHACHA20_POLY1305_BAD_STATE -0x00049 /**< The requested operation is not permitted in the current state */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
MBEDTLS_AEAD_CHACHA20_POLY1305_ENCRYPT,
|
MBEDTLS_AEAD_CHACHA20_POLY1305_ENCRYPT,
|
||||||
@ -227,4 +231,8 @@ int mbedtls_aead_chacha20_poly1305_crypt_and_mac( const unsigned char key[32],
|
|||||||
*/
|
*/
|
||||||
int mbedtls_aead_chacha20_poly1305_self_test( int verbose );
|
int mbedtls_aead_chacha20_poly1305_self_test( int verbose );
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_AEAD_CHACHA20_POLY1305_H */
|
#endif /* MBEDTLS_AEAD_CHACHA20_POLY1305_H */
|
||||||
|
@ -36,6 +36,10 @@
|
|||||||
|
|
||||||
#define MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA -0x003B /**< Invalid input parameter(s). */
|
#define MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA -0x003B /**< Invalid input parameter(s). */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CHACHA20_ALT)
|
#if !defined(MBEDTLS_CHACHA20_ALT)
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -189,4 +193,8 @@ int mbedtls_chacha20_crypt( const unsigned char key[32],
|
|||||||
*/
|
*/
|
||||||
int mbedtls_chacha20_self_test( int verbose );
|
int mbedtls_chacha20_self_test( int verbose );
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_CHACHA20_H */
|
#endif /* MBEDTLS_CHACHA20_H */
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
|
|
||||||
#define MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA -0x0041 /**< Invalid input parameter(s). */
|
#define MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA -0x0041 /**< Invalid input parameter(s). */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_POLY1305_ALT)
|
#if !defined(MBEDTLS_POLY1305_ALT)
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -140,4 +144,8 @@ int mbedtls_poly1305_mac( const unsigned char key[32],
|
|||||||
*/
|
*/
|
||||||
int mbedtls_poly1305_self_test( int verbose );
|
int mbedtls_poly1305_self_test( int verbose );
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_POLY1305_H */
|
#endif /* MBEDTLS_POLY1305_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user