Re: libcrypto stack routines

2002-07-30 Thread Chris Jarshant
Ok I finally figured it out: the compare routine's signature needs to be int my_cmp(X509_ATTRIBUTE **a, X509_ATTRIBUTE **b); not int my_cmp(X509_ATTRIBUTE *a, X509_ATTRIBUTE *b); However, my compare routine can only compare a few types of attributes like OCTET_STRINGs and BMPSTRINGs.. It is

libcrypto stack routines

2002-07-25 Thread Chris Jarshant
Is there documentation (aside from looking at the header files) on how to use things like STACK_OF(type) and the sk_*_find() functions? Perhaps I'm going about it wrong, but I can't figure it out. Any help would be most apprecianted. I'm trying to do this: given a STACK_OF(PKCS12_SAFEBAG)