Lines Matching defs:namestring
523 tls_get_x509_subject_name_oneline(X509 *cert, struct tls_x509_name_string *namestring)
528 namestring->str[0] = '\0';
534 assert(sizeof namestring->str >= 4); /* "?" or "...", plus 0 */
537 namestring->str[0] = '?';
538 namestring->str[1] = 0;
542 X509_NAME_oneline(name, namestring->str, sizeof namestring->str);
543 len = strlen(namestring->str);
544 assert(namestring->str[len] == 0);
545 assert(len < sizeof namestring->str);
547 if (len+1 == sizeof namestring->str) {
553 assert(namestring->str[len] == 0);
554 namestring->str[--len] = '.';
555 namestring->str[--len] = '.';
556 namestring->str[--len] = '.';