I have absolutely no experience with ssl whatsoever, but...
> Here is the function:
> u_char *get_digest(u_char *data, int length, int *outlen)
> {
> EVP_MD_CTX mdctx;
> const EVP_MD *md = EVP_sha1();
> int digest_size = EVP_MD_size(md);
> u_char *digest;
>
> EVP_MD_CTX_init(&mdctx);
>
I have a function get_digest() which sometimes causes a segmentation
fault, and I cannot figure out why. I use the function in two programs,
in the first one it works fine, but in the second it segfaults. The
strange thing is that it segfaults on the EVP_DigestInit_ex() function,
before the varia