Extensions openssl

2004-10-05 Thread lbfi
Hi, I'm looking for a way to retrieve three extensions from a certificate. They are 'Subject Directory Attributes', 'Policy Mappings' and 'Name Constraints'. Although they are defined in RFC 2459, I could not find its definition in crypto/objects/objects.h (openssl 0.9.7c distribution), nor could

Re:Random number seed in RSA

2004-08-10 Thread lbfi
You can use these functions: void RAND_seed(const void *buf, int num); void RAND_add(const void *buf, int num, double entropy); int RAND_status(void); int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam); void RAND_screen(void); You need to seed PRNG before the function RSA_generate_k

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? Thank