Lines Matching refs:id
88 static int int_x509_param_set_hosts(X509_VERIFY_PARAM_ID *id, int mode,
104 if (mode == SET_HOST && id->hosts) {
105 string_stack_free(id->hosts);
106 id->hosts = NULL;
115 if (id->hosts == NULL &&
116 (id->hosts = sk_OPENSSL_STRING_new_null()) == NULL) {
121 if (!sk_OPENSSL_STRING_push(id->hosts, copy)) {
123 if (sk_OPENSSL_STRING_num(id->hosts) == 0) {
124 sk_OPENSSL_STRING_free(id->hosts);
125 id->hosts = NULL;
151 paramid = param->id;
193 param->id = paramid;
203 OPENSSL_free(param->id);
248 test_x509_verify_param_copy(id->idf, def)
261 X509_VERIFY_PARAM_ID *id;
264 id = src->id;
307 if (dest->id->hosts) {
308 string_stack_free(dest->id->hosts);
309 dest->id->hosts = NULL;
311 if (id->hosts) {
312 dest->id->hosts =
313 sk_OPENSSL_STRING_deep_copy(id->hosts, str_copy, str_free);
314 if (dest->id->hosts == NULL)
316 dest->id->hostflags = id->hostflags;
321 if (!X509_VERIFY_PARAM_set1_email(dest, id->email, id->emaillen))
326 if (!X509_VERIFY_PARAM_set1_ip(dest, id->ip, id->iplen))
468 return int_x509_param_set_hosts(param->id, SET_HOST, name, namelen);
474 return int_x509_param_set_hosts(param->id, ADD_HOST, name, namelen);
480 param->id->hostflags = flags;
485 return param->id->peername;
491 return int_x509_param_set1(¶m->id->email, ¶m->id->emaillen,
500 return int_x509_param_set1((char **)¶m->id->ip, ¶m->id->iplen,
633 const X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id)
636 if (id < num)
637 return default_table + id;
638 return sk_X509_VERIFY_PARAM_value(param_table, id - num);