I tried adding ":" as suggested, but this still did not work. :( Does anyone have other suggestions?
-Chris > > I'm trying to allow my program to be configurable for either AES 128 > > bit, or AES 256 bit. The problem is that when I select only the > > AES128-SHA cipher, the AES256-SHA cipher gets added > > automaticlly. > > > > Is this a limitation of selecting AES, or am I doing something wrong? > > Here is my code: > > > > 1. Set cyphers: > > > > CString Shif = "AES128-SHA"; > > > > Shif+="!IDEA:!ADH:"; > > You probably have to add some ":" here. With the explicit selection of > AES128-SHA you do not have to remove the other ciphers anyway. > > > SSL_CTX_set_cipher_list(m_ctx, Shif.GetBuffer()); > > SSL_CTX_set_options(SSL_OP_NO_SSLv2); > > > > 2. Display chypers: > > > > SSL* lSSL = SSL_new(lCTX); > > > > int ccnt=0; > > const char *res=(char*)1; > > for (int i=0;res!=NULL;i++) > > { > > res = SSL_get_cipher_list(lSSL, i); > > if (res) > > { > > m_List.AddString((char*)res); > > ccnt++; > > } > > } ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]