Lines Matching defs:rctx
158 EVP_PKEY_CTX *rctx;
164 rctx = OPENSSL_malloc(sizeof(EVP_PKEY_CTX));
165 if (!rctx) {
169 memset(rctx, 0, sizeof(EVP_PKEY_CTX));
171 rctx->pmeth = pctx->pmeth;
172 rctx->engine = pctx->engine;
173 rctx->operation = pctx->operation;
176 rctx->pkey = EVP_PKEY_up_ref(pctx->pkey);
177 if (rctx->pkey == NULL) {
183 rctx->peerkey = EVP_PKEY_up_ref(pctx->peerkey);
184 if (rctx->peerkey == NULL) {
189 if (pctx->pmeth->copy(rctx, pctx) > 0) {
190 return rctx;
194 EVP_PKEY_CTX_free(rctx);