Lines Matching refs:c
119 static int hex_to_int(char c) in hex_to_int() argument
121 return ('0' <= c && c <= '9') ? (c - '0') : in hex_to_int()
122 ('a' <= c && c <= 'f') ? (c - 'a' + 10) : in hex_to_int()
123 ('A' <= c && c <= 'F') ? (c - 'A' + 10) : -1; in hex_to_int()
143 const char *c; in parse_attribute_value_string() local
148 for (c = s; c < end; c++) { in parse_attribute_value_string()
149 if (*c == '\\') { in parse_attribute_value_string()
150 c++; in parse_attribute_value_string()
153 if (c + 1 < end && (n = hexpair_to_int(c)) != -1) { in parse_attribute_value_string()
158 c++; in parse_attribute_value_string()
159 } else if (c < end && strchr(" ,=+<>#;\"\\", *c)) { in parse_attribute_value_string()
160 *(d++) = *c; in parse_attribute_value_string()
165 *(d++) = *c; in parse_attribute_value_string()
235 int c = hexpair_to_int(s + 2 * i); in parse_attribute_value_hex_der_encoded() local
236 if (c < 0) { in parse_attribute_value_hex_der_encoded()
239 der[i] = c; in parse_attribute_value_hex_der_encoded()
285 const char *s = name, *c = s; in mbedtls_x509_string_to_names() local
298 while (c <= end) { in mbedtls_x509_string_to_names()
299 if (in_attr_type && *c == '=') { in mbedtls_x509_string_to_names()
300 if ((attr_descr = x509_attr_descr_from_name(s, (size_t) (c - s))) == NULL) { in mbedtls_x509_string_to_names()
301 if ((mbedtls_oid_from_numeric_string(&oid, s, (size_t) (c - s))) != 0) { in mbedtls_x509_string_to_names()
313 s = c + 1; in mbedtls_x509_string_to_names()
317 if (!in_attr_type && ((*c == ',' && *(c-1) != '\\') || c == end)) { in mbedtls_x509_string_to_names()
318 if (s == c) { in mbedtls_x509_string_to_names()
325 s + 1, (size_t) (c - s) - 1, in mbedtls_x509_string_to_names()
337 parse_attribute_value_string(s, (int) (c - s), data, in mbedtls_x509_string_to_names()
359 while (c < end && *(c + 1) == ' ') { in mbedtls_x509_string_to_names()
360 c++; in mbedtls_x509_string_to_names()
363 s = c + 1; in mbedtls_x509_string_to_names()
369 c++; in mbedtls_x509_string_to_names()