Add check for lengths over 65535 in mbedtls_asn1_write_len()
diff --git a/include/mbedtls/asn1write.h b/include/mbedtls/asn1write.h
index 73ff32b..4d2917e 100644
--- a/include/mbedtls/asn1write.h
+++ b/include/mbedtls/asn1write.h
@@ -40,6 +40,8 @@
  * \param start     start of the buffer (for bounds-checking)
  * \param len       the length to write
  *
+ * \note            lengths over 65535 are not supported at the moment
+ *
  * \return          the length written or a negative error code
  */
 int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, size_t len );