Re: Problems using X509_get_ext_d2i()

2004-08-04 Thread Joseph Bruni
Or rather since this is C++:
distpoints = reinterpret_cast 
(X509_get_ex_d2i(...));


On Aug 4, 2004, at 7:37 AM, Dr. Stephen Henson wrote:
Presumably your are trying this from C++ if so then you will need an 
explicit
cast to the appropriate type, for example

distpoints = (STACK_OF(DISTPONT) *)X509_get_ex_d2i(...);
Steve.
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Problems using X509_get_ext_d2i()

2004-08-03 Thread lbfi
Hi all!
I'm trying to scratch a distpoint from an X509
certificate. When I use this code,

STACK_OF(DIST_POINT) * distpoints = NULL;

distpoints = X509_get_ext_d2i(x,
NID_crl_distribution_points, NULL, NULL);

an error occurs:

invalid conversion from `void*' to `STACK*

Someone can help me?

Thanks

OBS.: I saw doc/openssl.txt and when use this:
BASIC_CONSTRAINTS *bs;
bs = X509_get_ext_d2i(cert, NID_basic_constraints,
NULL, NULL);
I get the same error.
 
__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]