size_tification.
[openssl.git] / crypto / asn1 / a_utf8.c
index 508e11e527c8c4b2b4bc84e872f453c58c179073..c677c99a5222020acb81dd93046598336eca7ade 100644 (file)
@@ -73,7 +73,7 @@
  * -4 = character encoded incorrectly (not minimal length).
  */
 
-int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
+int UTF8_getc(const unsigned char *str, size_t len, unsigned long *val)
 {
        const unsigned char *p;
        unsigned long value;
@@ -152,7 +152,7 @@ int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
  * It will need at most 6 characters.
  */
 
-int UTF8_putc(unsigned char *str, int len, unsigned long value)
+int UTF8_putc(unsigned char *str, size_t len, unsigned long value)
 {
        if(!str) len = 6;       /* Maximum we will need */
        else if(len <= 0) return -1;