diff options
author | Jakub Zelenka <bukka@php.net> | 2016-07-24 18:33:29 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-07-24 19:23:00 +0100 |
commit | c1054bb4d2a2e730d8ecb25037904f7d9a7f137d (patch) | |
tree | a29cce5463523de7b81d935de614259282ed849e /crypto/evp/encode.c | |
parent | 47d96bcc6b0eea6348b3b08a0c5b075d4d70de95 (diff) | |
download | openssl-c1054bb4d2a2e730d8ecb25037904f7d9a7f137d.tar.gz |
Add EVP_ENCODE_CTX_copy
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1344)
Diffstat (limited to 'crypto/evp/encode.c')
-rw-r--r-- | crypto/evp/encode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index d140da67cc..abb1044378 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -102,6 +102,14 @@ void EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) { OPENSSL_free(ctx); } + +int EVP_ENCODE_CTX_copy(EVP_ENCODE_CTX *dctx, EVP_ENCODE_CTX *sctx) +{ + memcpy(dctx, sctx, sizeof(EVP_ENCODE_CTX)); + + return 1; +} + int EVP_ENCODE_CTX_num(EVP_ENCODE_CTX *ctx) { return ctx->num; |