From: Todd O. <to...@us...> - 2014-12-09 21:35:43
|
Update of /cvsroot/yassl/yassl/examples/client In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1873/examples/client Modified Files: client.cpp Log Message: add cipher-test.sh to bundle, tests all cipher suites Index: client.cpp =================================================================== RCS file: /cvsroot/yassl/yassl/examples/client/client.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** client.cpp 25 Nov 2014 22:15:59 -0000 1.15 --- client.cpp 9 Dec 2014 21:35:41 -0000 1.16 *************** *** 1,4 **** --- 1,8 ---- /* client.cpp */ + // takes an optional command line argument of cipher list to make scripting + // easier + + #include "../../testsuite/test.hpp" *************** *** 60,63 **** --- 64,73 ---- set_certs(ctx); + if (argc >= 2) { + printf("setting cipher list to %s\n", argv[1]); + if (SSL_CTX_set_cipher_list(ctx, argv[1]) != SSL_SUCCESS) { + ClientError(ctx, NULL, sockfd, "set_cipher_list error\n"); + } + } SSL* ssl = SSL_new(ctx); |