EVP_MD_CTX_copy() also can fail due to external engine usage (including HW engine). In this case underlying work can be more complicated that memory allocation. Descriptors shortage, amount of simultaneous contexts constraints, etc. Or just bugs in engine code.
On 27 December 2013 21:39, Misaki.Miyashita via RT <r...@openssl.org> wrote: > >> > > I agree that the return value should be checked but I'd like to know the > > underlying cause. EVP_MD_CTX_copy() shouldn't normally fail unless > something is > > seriously wrong, e.g. memory allocation failures. > > >