Lines Matching refs:namelen
37 const char *name, size_t namelen) in int_x509_param_set_hosts() argument
45 if (namelen == 0 || name == NULL) in int_x509_param_set_hosts()
46 namelen = name ? strlen(name) : 0; in int_x509_param_set_hosts()
48 && memchr(name, '\0', namelen > 1 ? namelen - 1 : namelen) != NULL) in int_x509_param_set_hosts()
50 if (namelen > 0 && name[namelen - 1] == '\0') in int_x509_param_set_hosts()
51 --namelen; in int_x509_param_set_hosts()
57 if (name == NULL || namelen == 0) in int_x509_param_set_hosts()
60 copy = OPENSSL_strndup(name, namelen); in int_x509_param_set_hosts()
385 const char *name, size_t namelen) in X509_VERIFY_PARAM_set1_host() argument
387 return int_x509_param_set_hosts(param, SET_HOST, name, namelen); in X509_VERIFY_PARAM_set1_host()
391 const char *name, size_t namelen) in X509_VERIFY_PARAM_add1_host() argument
393 return int_x509_param_set_hosts(param, ADD_HOST, name, namelen); in X509_VERIFY_PARAM_add1_host()