Add compile-time guards around helper routine
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 4bbe0d4..f62ccf3 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -5435,6 +5435,7 @@
     return( ret );
 }
 
+#if defined(MBEDTLS_SSL_RENEGOTIATION) && defined(MBEDTLS_SSL_CLI_C)
 static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
                                          unsigned char *crt_buf,
                                          size_t crt_buf_len )
@@ -5449,6 +5450,7 @@
 
     return( memcmp( peer_crt->raw.p, crt_buf, crt_buf_len) );
 }
+#endif /* MBEDTLS_SSL_RENEGOTIATION && MBEDTLS_SSL_CLI_C */
 
 /*
  * Once the certificate message is read, parse it into a cert chain and