• Home
  • Raw
  • Download

Lines Matching refs:meth

86     custom_ext_method *meth = exts->meths;  in custom_ext_find()  local
88 for (i = 0; i < exts->meths_count; i++, meth++) { in custom_ext_find()
89 if (ext_type == meth->ext_type in custom_ext_find()
90 && (role == ENDPOINT_BOTH || role == meth->role in custom_ext_find()
91 || meth->role == ENDPOINT_BOTH)) { in custom_ext_find()
94 return meth; in custom_ext_find()
106 custom_ext_method *meth = exts->meths; in custom_ext_init() local
108 for (i = 0; i < exts->meths_count; i++, meth++) in custom_ext_init()
109 meth->ext_flags = 0; in custom_ext_init()
119 custom_ext_method *meth; in custom_ext_parse() local
125 meth = custom_ext_find(exts, role, ext_type, NULL); in custom_ext_parse()
127 if (!meth) in custom_ext_parse()
131 if (!extension_is_relevant(s, meth->context, context)) in custom_ext_parse()
141 if ((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0) { in custom_ext_parse()
155 meth->ext_flags |= SSL_EXT_FLAG_RECEIVED; in custom_ext_parse()
158 if (!meth->parse_cb) in custom_ext_parse()
161 if (meth->parse_cb(s, ext_type, context, ext_data, ext_size, x, chainidx, in custom_ext_parse()
162 &al, meth->parse_arg) <= 0) { in custom_ext_parse()
178 custom_ext_method *meth; in custom_ext_add() local
186 meth = exts->meths + i; in custom_ext_add()
188 if (!should_add_extension(s, meth->context, context, maxversion)) in custom_ext_add()
197 if (!(meth->ext_flags & SSL_EXT_FLAG_RECEIVED)) in custom_ext_add()
204 if ((context & SSL_EXT_CLIENT_HELLO) == 0 && meth->add_cb == NULL) in custom_ext_add()
207 if (meth->add_cb != NULL) { in custom_ext_add()
208 int cb_retval = meth->add_cb(s, meth->ext_type, context, &out, in custom_ext_add()
210 meth->add_arg); in custom_ext_add()
220 if (!WPACKET_put_bytes_u16(pkt, meth->ext_type) in custom_ext_add()
232 if (!ossl_assert((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0)) { in custom_ext_add()
242 meth->ext_flags |= SSL_EXT_FLAG_SENT; in custom_ext_add()
244 if (meth->free_cb != NULL) in custom_ext_add()
245 meth->free_cb(s, meth->ext_type, context, out, meth->add_arg); in custom_ext_add()
323 custom_ext_method *meth; in custom_exts_free() local
325 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) { in custom_exts_free()
326 if (meth->add_cb != custom_ext_add_old_cb_wrap) in custom_exts_free()
330 OPENSSL_free(meth->add_arg); in custom_exts_free()
331 OPENSSL_free(meth->parse_arg); in custom_exts_free()
353 custom_ext_method *meth, *tmp; in add_custom_ext_intern() local
394 meth = exts->meths + exts->meths_count; in add_custom_ext_intern()
395 memset(meth, 0, sizeof(*meth)); in add_custom_ext_intern()
396 meth->role = role; in add_custom_ext_intern()
397 meth->context = context; in add_custom_ext_intern()
398 meth->parse_cb = parse_cb; in add_custom_ext_intern()
399 meth->add_cb = add_cb; in add_custom_ext_intern()
400 meth->free_cb = free_cb; in add_custom_ext_intern()
401 meth->ext_type = ext_type; in add_custom_ext_intern()
402 meth->add_arg = add_arg; in add_custom_ext_intern()
403 meth->parse_arg = parse_arg; in add_custom_ext_intern()