Version: 0.9.7c

Hi,
The word "list" is also a standard c++ class name, and when using openssl in
a c++ environment this clearly becomes a problem.

The following exemple will fail to compile:
<CODE>
#include <openssl/asn1.h>

#include <list>
using namespace std;

list<unsigned char> myList;
</CODE>

It will fail because of the following lines in openssl\ssl.h

1360 : void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *list);
1361 : void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME)
*list);

I guess there are many other places where the word "list" is used in
includes, that's where "sed" becomes fabulous :)

Thanks,
Frédéric Giudicelli
http://www.newpki.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to