• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/crypto/openssl/ssl/statem/

Lines Matching defs:meth

86     custom_ext_method *meth = exts->meths;
88 for (i = 0; i < exts->meths_count; i++, meth++) {
89 if (ext_type == meth->ext_type
90 && (role == ENDPOINT_BOTH || role == meth->role
91 || meth->role == ENDPOINT_BOTH)) {
94 return meth;
106 custom_ext_method *meth = exts->meths;
108 for (i = 0; i < exts->meths_count; i++, meth++)
109 meth->ext_flags = 0;
119 custom_ext_method *meth;
125 meth = custom_ext_find(exts, role, ext_type, NULL);
127 if (!meth)
131 if (!extension_is_relevant(s, meth->context, context))
141 if ((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0) {
154 meth->ext_flags |= SSL_EXT_FLAG_RECEIVED;
157 if (!meth->parse_cb)
160 if (meth->parse_cb(s, ext_type, context, ext_data, ext_size, x, chainidx,
161 &al, meth->parse_arg) <= 0) {
177 custom_ext_method *meth;
185 meth = exts->meths + i;
187 if (!should_add_extension(s, meth->context, context, maxversion))
196 if (!(meth->ext_flags & SSL_EXT_FLAG_RECEIVED))
203 if ((context & SSL_EXT_CLIENT_HELLO) == 0 && meth->add_cb == NULL)
206 if (meth->add_cb != NULL) {
207 int cb_retval = meth->add_cb(s, meth->ext_type, context, &out,
209 meth->add_arg);
219 if (!WPACKET_put_bytes_u16(pkt, meth->ext_type)
231 if (!ossl_assert((meth->ext_flags & SSL_EXT_FLAG_SENT) == 0)) {
241 meth->ext_flags |= SSL_EXT_FLAG_SENT;
243 if (meth->free_cb != NULL)
244 meth->free_cb(s, meth->ext_type, context, out, meth->add_arg);
322 custom_ext_method *meth;
324 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) {
325 if (meth->add_cb != custom_ext_add_old_cb_wrap)
329 OPENSSL_free(meth->add_arg);
330 OPENSSL_free(meth->parse_arg);
352 custom_ext_method *meth, *tmp;
393 meth = exts->meths + exts->meths_count;
394 memset(meth, 0, sizeof(*meth));
395 meth->role = role;
396 meth->context = context;
397 meth->parse_cb = parse_cb;
398 meth->add_cb = add_cb;
399 meth->free_cb = free_cb;
400 meth->ext_type = ext_type;
401 meth->add_arg = add_arg;
402 meth->parse_arg = parse_arg;