Theodore Hope wrote:
>
> I'm trying to use Andrea Fogazzi's S/MIME verifying stuff and I get
> an error when compiling "verify.c"
>
> verify.c: In function `main':
> verify.c:124: too few arguments to function `PEM_read_bio_PKCS7'
>
> This is with openssl 0.9.4 under BSDI 4.0.1 (gcc 2.7.2.1).
> The rest of openssl compiles and links fine.
>
> Am I missing something, or is that particular file (verify.c)
> a bit behind the times in terms of how it interfaces with
> the rest of the openssl calls?
>
I only wrote sometime ago
some notes of my experience using the verify.c and sign.c; they are a
personal memo and aren't related in any way with the openssl.org.
My notes are not very up to date, so you can use only as an
introduction.
I hope I'll correct them someday.
Now your problem:
In the 0.9.4 verify.c in the 0.9.4 were, as you explain, behind the
PKCS7: there was a problem with the number of parameter when callling
PEM_read_bio_PKCS7: you can try adding a NULL parameter, but I
believe it won't work.
The problem has been corrected in the latest snapshot and
it seems to work to me with a newly generated certificate.
Ciao,
Andrea.
--
Andrea F. Fogazzi <[EMAIL PROTECTED]>
1024 0x321C9EF3 1997-08-27 ---------- DSS
"2BF8 FC4E 5B36 2C02 35DB 0AAD D29B BA16 321C 9EF3"
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]