s4:heimdal: import lorikeet-heimdal-202201172009 (commit 5a0b45cd723628b3690ea848548b...
[samba.git] / source4 / heimdal / lib / asn1 / der_format.c
index 4f06c1b01fd996a0ebd3ee41461c28807d622075..bb4a7cee9aa8492fdfa7299bfe43a3e13fd83d46 100644 (file)
@@ -36,7 +36,7 @@
 
 RCSID("$Id$");
 
-int
+int ASN1CALL
 der_parse_hex_heim_integer (const char *p, heim_integer *data)
 {
     ssize_t len;
@@ -84,7 +84,7 @@ der_parse_hex_heim_integer (const char *p, heim_integer *data)
     return 0;
 }
 
-int
+int ASN1CALL
 der_print_hex_heim_integer (const heim_integer *data, char **p)
 {
     ssize_t len;
@@ -104,7 +104,7 @@ der_print_hex_heim_integer (const heim_integer *data, char **p)
     return 0;
 }
 
-int
+int ASN1CALL
 der_print_heim_oid (const heim_oid *oid, char delim, char **str)
 {
     struct rk_strpool *p = NULL;
@@ -129,7 +129,7 @@ der_print_heim_oid (const heim_oid *oid, char delim, char **str)
     return 0;
 }
 
-int
+int ASN1CALL
 der_parse_heim_oid (const char *str, const char *sep, heim_oid *data)
 {
     char *s, *w, *brkt, *endptr;
@@ -163,7 +163,7 @@ der_parse_heim_oid (const char *str, const char *sep, heim_oid *data)
            free(s);
            return EINVAL;
        }
-       data->components[data->length++] = l;
+       data->components[data->length++] = (unsigned int)l;
     }
     free(s);
     return 0;