Fix misplaced #endif in ssl_tls.c
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 271bfe6..cbbbd5bd 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -4753,8 +4753,6 @@
     }
 }
 
-#endif
-
 #if defined(POLARSSL_SSL_SET_CURVES)
 /*
  * Check is a curve proposed by the peer is in our list.
@@ -4852,3 +4850,5 @@
     return( 0 );
 }
 #endif /* POLARSSL_X509_CRT_PARSE_C */
+
+#endif /* POLARSSL_SSL_TLS_C */