about EVP_DigestInit_ex

2014-08-11 Thread nicolas . kox
Hello, sorry for the first incomplete message :-/ I'm a bit confused about the behavior of EVP_DigestInit_ex when no md is given : int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { #ifndef OPENSSL_NO_ENGINE (...) if (type) {

about EVP_DigestInit_ex

2014-08-11 Thread nicolas . kox
Hello, I'm a bit confused about the behavior of EVP_DigestInit_ex : int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { if (type) { else if(!ctx->digest) { EVPerr(EVP_F_EVP_DIGESTINIT_EX,EVP_R_NO_DIGES