diff options
author | msvensson@shellback.(none) <> | 2006-05-03 13:08:24 +0200 |
---|---|---|
committer | msvensson@shellback.(none) <> | 2006-05-03 13:08:24 +0200 |
commit | e2854b8a7fe36e5cf1935bfcd502a86e7c03bf98 (patch) | |
tree | a532ecc3e94ad79d9f70543d83f7b7f1c266196c /extra/yassl/examples | |
parent | ff7be64f9bfe5cb6ea2f69445961a5a3f1201be6 (diff) | |
download | mariadb-git-e2854b8a7fe36e5cf1935bfcd502a86e7c03bf98.tar.gz |
Update yaSSL to version 1.3.0
Diffstat (limited to 'extra/yassl/examples')
-rw-r--r-- | extra/yassl/examples/client/client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/yassl/examples/client/client.cpp b/extra/yassl/examples/client/client.cpp index 704a8e76637..3acd091baad 100644 --- a/extra/yassl/examples/client/client.cpp +++ b/extra/yassl/examples/client/client.cpp @@ -33,10 +33,10 @@ void client_test(void* args) const char* cipher = 0; int index = 0; char list[1024]; - strcpy(list, "cipherlist"); + strncpy(list, "cipherlist", 11); while ( (cipher = SSL_get_cipher_list(ssl, index++)) ) { - strcat(list, ":"); - strcat(list, cipher); + strncat(list, ":", 2); + strncat(list, cipher, strlen(cipher) + 1); } printf("%s\n", list); printf("Using Cipher Suite %s\n", SSL_get_cipher(ssl)); |