X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fengine%2Feng_list.c;h=50188567814d274ccbd3a9e98b392ded9e3bc8ee;hb=e172d60ddbba3dd37748c8c468064c99213b9e60;hp=c76e6ad8973f4d9f62704c96a70915c559c9ea5b;hpb=b370230b786eed9b73c9a1f5c0a5e008e8009989;p=oweals%2Fopenssl.git diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c index c76e6ad897..5018856781 100644 --- a/crypto/engine/eng_list.c +++ b/crypto/engine/eng_list.c @@ -55,6 +55,11 @@ * Hudson (tjh@cryptsoft.com). * */ +/* ==================================================================== + * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. + * ECDH support in OpenSSL originally developed by + * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. + */ #include #include "cryptlib.h" @@ -323,6 +328,12 @@ static void engine_cpy(ENGINE *dest, const ENGINE *src) #endif #ifndef OPENSSL_NO_DH dest->dh_meth = src->dh_meth; +#endif +#ifndef OPENSSL_NO_ECDH + dest->ecdh_meth = src->ecdh_meth; +#endif +#ifndef OPENSSL_NO_ECDSA + dest->ecdsa_meth = src->ecdsa_meth; #endif dest->rand_meth = src->rand_meth; dest->ciphers = src->ciphers; @@ -374,7 +385,10 @@ ENGINE *ENGINE_by_id(const char *id) } CRYPTO_r_unlock(CRYPTO_LOCK_ENGINE); if(iterator == NULL) + { ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE); + ERR_add_error_data(2, "id=", id); + } return iterator; }