Lines Matching refs:mtype
95 uint8_t mtype; member
137 mdevp[dane_mds[i].mtype] = md; in dane_ctx_enable()
138 mdord[dane_mds[i].mtype] = dane_mds[i].ord; in dane_ctx_enable()
208 t->selector, t->mtype, t->data, t->dlen) <= 0) in ssl_dane_dup()
215 const EVP_MD *md, uint8_t mtype, uint8_t ord) in dane_mtype_set() argument
219 if (mtype == DANETLS_MATCHING_FULL && md != NULL) { in dane_mtype_set()
224 if (mtype > dctx->mdmax) { in dane_mtype_set()
227 int n = ((int)mtype) + 1; in dane_mtype_set()
240 for (i = dctx->mdmax + 1; i < mtype; ++i) { in dane_mtype_set()
245 dctx->mdmax = mtype; in dane_mtype_set()
248 dctx->mdevp[mtype] = md; in dane_mtype_set()
250 dctx->mdord[mtype] = (md == NULL) ? 0 : ord; in dane_mtype_set()
255 static const EVP_MD *tlsa_md_get(SSL_DANE *dane, uint8_t mtype) in tlsa_md_get() argument
257 if (mtype > dane->dctx->mdmax) in tlsa_md_get()
259 return dane->dctx->mdevp[mtype]; in tlsa_md_get()
265 uint8_t mtype, const unsigned char *data, size_t dlen) in dane_tlsa_add() argument
294 if (mtype != DANETLS_MATCHING_FULL) { in dane_tlsa_add()
295 md = tlsa_md_get(dane, mtype); in dane_tlsa_add()
319 t->mtype = mtype; in dane_tlsa_add()
329 if (mtype == DANETLS_MATCHING_FULL) { in dane_tlsa_add()
432 if (dane->dctx->mdord[rec->mtype] > dane->dctx->mdord[mtype]) in dane_tlsa_add()
1288 uint8_t *mtype, const unsigned char **data, size_t *dlen) in SSL_get0_dane_tlsa() argument
1305 if (mtype) in SSL_get0_dane_tlsa()
1306 *mtype = dane->mtlsa->mtype; in SSL_get0_dane_tlsa()
1326 uint8_t mtype, const unsigned char *data, size_t dlen) in SSL_dane_tlsa_add() argument
1333 return dane_tlsa_add(&sc->dane, usage, selector, mtype, data, dlen); in SSL_dane_tlsa_add()
1336 int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md, uint8_t mtype, in SSL_CTX_dane_mtype_set() argument
1339 return dane_mtype_set(&ctx->dane, md, mtype, ord); in SSL_CTX_dane_mtype_set()