Lines Matching refs:dstctx
177 PROV_MAC_CTX *dstctx; in mac_dupctx() local
182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in mac_dupctx()
183 if (dstctx == NULL) in mac_dupctx()
186 *dstctx = *srcctx; in mac_dupctx()
187 dstctx->propq = NULL; in mac_dupctx()
188 dstctx->key = NULL; in mac_dupctx()
189 dstctx->macctx = NULL; in mac_dupctx()
191 if (srcctx->propq != NULL && (dstctx->propq = OPENSSL_strdup(srcctx->propq)) == NULL) in mac_dupctx()
196 dstctx->key = srcctx->key; in mac_dupctx()
199 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx()
200 if (dstctx->macctx == NULL) in mac_dupctx()
204 return dstctx; in mac_dupctx()
206 mac_freectx(dstctx); in mac_dupctx()