Lines Matching refs:meth
67 custom_ext_method *meth = exts->meths;
68 for (i = 0; i < exts->meths_count; i++, meth++) {
69 if (ext_type == meth->ext_type)
70 return meth;
81 custom_ext_method *meth = exts->meths;
82 for (i = 0; i < exts->meths_count; i++, meth++)
83 meth->ext_flags = 0;
92 custom_ext_method *meth;
93 meth = custom_ext_find(exts, ext_type);
95 if (!meth)
102 if (!(meth->ext_flags & SSL_EXT_FLAG_SENT)) {
108 if (meth->ext_flags & SSL_EXT_FLAG_RECEIVED) {
112 meth->ext_flags |= SSL_EXT_FLAG_RECEIVED;
114 if (!meth->parse_cb)
117 return meth->parse_cb(s, ext_type, ext_data, ext_size, al,
118 meth->parse_arg);
129 custom_ext_method *meth;
136 meth = exts->meths + i;
142 if (!(meth->ext_flags & SSL_EXT_FLAG_RECEIVED))
145 if (!meth->add_cb)
148 if (meth->add_cb) {
150 cb_retval = meth->add_cb(s, meth->ext_type,
151 &out, &outlen, al, meth->add_arg);
159 s2n(meth->ext_type, ret);
168 OPENSSL_assert(!(meth->ext_flags & SSL_EXT_FLAG_SENT));
174 meth->ext_flags |= SSL_EXT_FLAG_SENT;
175 if (meth->free_cb)
176 meth->free_cb(s, meth->ext_type, out, meth->add_arg);
210 custom_ext_method *meth;
235 meth = exts->meths + exts->meths_count;
236 memset(meth, 0, sizeof(custom_ext_method));
237 meth->parse_cb = parse_cb;
238 meth->add_cb = add_cb;
239 meth->free_cb = free_cb;
240 meth->ext_type = ext_type;
241 meth->add_arg = add_arg;
242 meth->parse_arg = parse_arg;