Re: X509_digest() help

2006-03-20 Thread Girish Venkatachalam
Sorry if I sound too obvious. Actually I think you need to allocate space for the buffer, try with unsigned char buf[4096] or something. I am sure you have tried it ... regards, Girish --- vipin rathor <[EMAIL PROTECTED]> wrote: > > hi all, > i need to fetch the thumbprint of the X50

X509_digest() help

2006-03-20 Thread vipin rathor
hi all,     i need to fetch the thumbprint of the X509 cert. and for this i'm using X509_digest(). but it is throwing a segmentation fault. any idea how to fix this.   this is the code i'm using...   void print_thubprint(X509 *cert) {   const EVP_MD *md=NULL;   unsigned char *buf=NULL;