Lines Matching refs:dstctx
197 PROV_ECX_CTX *dstctx;
202 dstctx = OPENSSL_zalloc(sizeof(*srcctx));
203 if (dstctx == NULL) {
208 *dstctx = *srcctx;
209 if (dstctx->key != NULL && !ossl_ecx_key_up_ref(dstctx->key)) {
211 OPENSSL_free(dstctx);
215 if (dstctx->peerkey != NULL && !ossl_ecx_key_up_ref(dstctx->peerkey)) {
217 ossl_ecx_key_free(dstctx->key);
218 OPENSSL_free(dstctx);
222 return dstctx;