Lines Matching refs:mx
214 int mx, i;
230 mx = sk_EX_CALLBACK_num(ip->meth);
231 if (mx > 0) {
232 if (mx < (int)OSSL_NELEM(stack))
235 storage = OPENSSL_malloc(sizeof(*storage) * mx);
237 for (i = 0; i < mx; i++)
242 if (mx > 0 && storage == NULL) {
246 for (i = 0; i < mx; i++) {
270 int mx, j, i;
291 mx = sk_EX_CALLBACK_num(ip->meth);
293 if (j < mx)
294 mx = j;
295 if (mx > 0) {
296 if (mx < (int)OSSL_NELEM(stack))
299 storage = OPENSSL_malloc(sizeof(*storage) * mx);
301 for (i = 0; i < mx; i++)
306 if (mx == 0)
313 * Make sure the ex_data stack is at least |mx| elements long to avoid
314 * issues in the for loop that follows; so go get the |mx|'th element
319 if (!CRYPTO_set_ex_data(to, mx - 1, CRYPTO_get_ex_data(to, mx - 1)))
322 for (i = 0; i < mx; i++) {
365 int mx, i;
380 mx = sk_EX_CALLBACK_num(ip->meth);
381 if (mx > 0) {
382 if (mx < (int)OSSL_NELEM(stack))
385 storage = OPENSSL_malloc(sizeof(*storage) * mx);
387 for (i = 0; i < mx; i++) {
396 qsort(storage, mx, sizeof(*storage), ex_callback_compare);
397 for (i = 0; i < mx; i++) {