Lines Matching defs:dctx
112 static int dane_ctx_enable(struct dane_ctx_st *dctx)
120 if (dctx->mdevp != NULL)
144 dctx->mdevp = mdevp;
145 dctx->mdord = mdord;
146 dctx->mdmax = mdmax;
151 static void dane_ctx_final(struct dane_ctx_st *dctx)
153 OPENSSL_free(dctx->mdevp);
154 dctx->mdevp = NULL;
156 OPENSSL_free(dctx->mdord);
157 dctx->mdord = NULL;
158 dctx->mdmax = 0;
199 to->dane.dctx = &to->ctx->dane;
217 static int dane_mtype_set(struct dane_ctx_st *dctx,
227 if (mtype > dctx->mdmax) {
232 mdevp = OPENSSL_realloc(dctx->mdevp, n * sizeof(*mdevp));
237 dctx->mdevp = mdevp;
239 mdord = OPENSSL_realloc(dctx->mdord, n * sizeof(*mdord));
244 dctx->mdord = mdord;
247 for (i = dctx->mdmax + 1; i < mtype; ++i) {
252 dctx->mdmax = mtype;
255 dctx->mdevp[mtype] = md;
257 dctx->mdord[mtype] = (md == NULL) ? 0 : ord;
264 if (mtype > dane->dctx->mdmax)
266 return dane->dctx->mdevp[mtype];
427 if (dane->dctx->mdord[rec->mtype] > dane->dctx->mdord[mtype])
1071 dane->dctx = &s->ctx->dane;