From cd0a3a409944ca6fde7ebe409252a40917f2e79f Mon Sep 17 00:00:00 2001 From: guenther <> Date: Mon, 7 Nov 2016 21:30:42 +0000 Subject: Use __{BEGIN,END}_HIDDEN_DECLS to avoid exporting the internal symbols ok jsing@ --- src/lib/libcrypto/curve25519/curve25519_internal.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/curve25519/curve25519_internal.h b/src/lib/libcrypto/curve25519/curve25519_internal.h index 09306b9ce8..f80424a6b7 100644 --- a/src/lib/libcrypto/curve25519/curve25519_internal.h +++ b/src/lib/libcrypto/curve25519/curve25519_internal.h @@ -19,9 +19,7 @@ #include -#if defined(__cplusplus) -extern "C" { -#endif +__BEGIN_HIDDEN_DECLS /* fe means field element. Here the field is \Z/(2^255-19). An element t, * entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77 @@ -95,8 +93,6 @@ void x25519_scalar_mult(uint8_t out[32], const uint8_t scalar[32], void x25519_scalar_mult_generic(uint8_t out[32], const uint8_t scalar[32], const uint8_t point[32]); -#if defined(__cplusplus) -} /* extern C */ -#endif +__END_HIDDEN_DECLS #endif /* HEADER_CURVE25519_INTERNAL_H */ -- cgit v1.2.3-55-g6feb