Remove individual copies of mbedtls_zeroize()
This commit removes all the static occurrencies of the function
mbedtls_zeroize() in each of the individual .c modules. Instead the
function has been moved to utils.h that is included in each of the
modules.
diff --git a/library/ssl_srv.c b/library/ssl_srv.c
index 2c180f1..b4934a3 100644
--- a/library/ssl_srv.c
+++ b/library/ssl_srv.c
@@ -50,10 +50,7 @@
#endif
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
-/* Implementation that should never be optimized out by the compiler */
-static void mbedtls_zeroize( void *v, size_t n ) {
- volatile unsigned char *p = v; while( n-- ) *p++ = 0;
-}
+#include "mbedtls/utils.h"
#endif
#if defined(MBEDTLS_SSL_DTLS_HELLO_VERIFY)