[rtems-libbsd commit] libsodium: Disable unused function

Sebastian Huber sebh at rtems.org
Tue Aug 27 08:34:39 UTC 2019


Module:    rtems-libbsd
Branch:    master
Commit:    17221cb5867d2c2dcc6df3d299539eddb3556230
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=17221cb5867d2c2dcc6df3d299539eddb3556230

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Aug 27 10:26:07 2019 +0200

libsodium: Disable unused function

---

 .../src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c b/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c
index 2aed776..3c7a0bd 100644
--- a/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c
+++ b/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c
@@ -72,12 +72,14 @@ crypto_onetimeauth_poly1305_statebytes(void)
     return sizeof(crypto_onetimeauth_poly1305_state);
 }
 
+#ifndef __rtems__
 void
 crypto_onetimeauth_poly1305_keygen(
     unsigned char k[crypto_onetimeauth_poly1305_KEYBYTES])
 {
     randombytes_buf(k, crypto_onetimeauth_poly1305_KEYBYTES);
 }
+#endif /* __rtems__ */
 
 int
 _crypto_onetimeauth_poly1305_pick_best_implementation(void)



More information about the vc mailing list