diff options
author | 2016-11-07 21:30:42 +0000 | |
---|---|---|
committer | 2016-11-07 21:30:42 +0000 | |
commit | 52173d4b08eb33403579a605906e105467a5fc9a (patch) | |
tree | 77ce493232abbfc7ff6ea6684bf338c465e27526 | |
parent | Add validation for input data that we use as switch configuration, like: (diff) | |
download | wireguard-openbsd-52173d4b08eb33403579a605906e105467a5fc9a.tar.xz wireguard-openbsd-52173d4b08eb33403579a605906e105467a5fc9a.zip |
Use __{BEGIN,END}_HIDDEN_DECLS to avoid exporting the internal symbols
ok jsing@
-rw-r--r-- | lib/libcrypto/curve25519/curve25519_internal.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libcrypto/curve25519/curve25519_internal.h b/lib/libcrypto/curve25519/curve25519_internal.h index 09306b9ce87..f80424a6b7e 100644 --- a/lib/libcrypto/curve25519/curve25519_internal.h +++ b/lib/libcrypto/curve25519/curve25519_internal.h @@ -19,9 +19,7 @@ #include <stdint.h> -#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 */ |