Re: Memory buffers, PKCS7_sign, etc

2009-02-14 Thread Dr. Stephen Henson
On Sat, Feb 14, 2009, openssl-us...@coreland.ath.cx wrote: > I have the following program that runs without error but for > some reason appears to write a truncated or invalid signed message: > [snip] > { > char *data; > int size = BIO_get_mem_data (mem_buf, &data); > printf ("%s"

Memory buffers, PKCS7_sign, etc

2009-02-13 Thread openssl-users
I have the following program that runs without error but for some reason appears to write a truncated or invalid signed message: -- #include #include #include #include #include #include #include #include static void info (const char *str) { fprintf (stderr, "info: %s\n", str); } stat