Lines Matching refs:exts
81 custom_ext_method *custom_ext_find(const custom_ext_methods *exts, in custom_ext_find() argument
86 custom_ext_method *meth = exts->meths; in custom_ext_find()
88 for (i = 0; i < exts->meths_count; i++, meth++) { in custom_ext_find()
103 void custom_ext_init(custom_ext_methods *exts) in custom_ext_init() argument
106 custom_ext_method *meth = exts->meths; in custom_ext_init()
108 for (i = 0; i < exts->meths_count; i++, meth++) in custom_ext_init()
119 custom_ext_methods *exts = &s->cert->custext; in custom_ext_parse() local
126 meth = custom_ext_find(exts, role, ext_type, NULL); in custom_ext_parse()
177 custom_ext_methods *exts = &s->cert->custext; in custom_ext_add() local
183 for (i = 0; i < exts->meths_count; i++) { in custom_ext_add()
187 meth = exts->meths + i; in custom_ext_add()
331 void custom_exts_free(custom_ext_methods *exts) in custom_exts_free() argument
336 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) { in custom_exts_free()
344 OPENSSL_free(exts->meths); in custom_exts_free()
345 exts->meths = NULL; in custom_exts_free()
346 exts->meths_count = 0; in custom_exts_free()
356 int ossl_tls_add_custom_ext_intern(SSL_CTX *ctx, custom_ext_methods *exts, in ossl_tls_add_custom_ext_intern() argument
374 if (exts == NULL) in ossl_tls_add_custom_ext_intern()
375 exts = &ctx->cert->custext; in ossl_tls_add_custom_ext_intern()
402 if (custom_ext_find(exts, role, ext_type, NULL)) in ossl_tls_add_custom_ext_intern()
404 tmp = OPENSSL_realloc(exts->meths, in ossl_tls_add_custom_ext_intern()
405 (exts->meths_count + 1) * sizeof(custom_ext_method)); in ossl_tls_add_custom_ext_intern()
409 exts->meths = tmp; in ossl_tls_add_custom_ext_intern()
410 meth = exts->meths + exts->meths_count; in ossl_tls_add_custom_ext_intern()
420 exts->meths_count++; in ossl_tls_add_custom_ext_intern()