sslcorrupttest.c (1.1.1.2) | sslcorrupttest.c (1.1.1.1) |
---|---|
1/* | 1/* |
2 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. | 2 * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. |
3 * 4 * Licensed under the OpenSSL license (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10#include "ssltestlib.h" --- 169 unchanged lines hidden (view full) --- 180 SSL_CTX *sctx = NULL, *cctx = NULL; 181 SSL *server = NULL, *client = NULL; 182 BIO *c_to_s_fbio; 183 int testresult = 0; 184 static unsigned char junk[16000] = { 0 }; 185 186 printf("Starting Test %d, %s\n", testidx, cipher_list[testidx]); 187 | 3 * 4 * Licensed under the OpenSSL license (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10#include "ssltestlib.h" --- 169 unchanged lines hidden (view full) --- 180 SSL_CTX *sctx = NULL, *cctx = NULL; 181 SSL *server = NULL, *client = NULL; 182 BIO *c_to_s_fbio; 183 int testresult = 0; 184 static unsigned char junk[16000] = { 0 }; 185 186 printf("Starting Test %d, %s\n", testidx, cipher_list[testidx]); 187 |
188 if (!create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), 189 TLS1_VERSION, TLS_MAX_VERSION, &sctx, &cctx, 190 cert, privkey)) { | 188 if (!create_ssl_ctx_pair(TLS_server_method(), TLS_client_method(), &sctx, 189 &cctx, cert, privkey)) { |
191 printf("Unable to create SSL_CTX pair\n"); 192 return 0; 193 } 194 195 if (!SSL_CTX_set_cipher_list(cctx, cipher_list[testidx])) { 196 printf("Failed setting cipher list\n"); 197 goto end; 198 } --- 85 unchanged lines hidden --- | 190 printf("Unable to create SSL_CTX pair\n"); 191 return 0; 192 } 193 194 if (!SSL_CTX_set_cipher_list(cctx, cipher_list[testidx])) { 195 printf("Failed setting cipher list\n"); 196 goto end; 197 } --- 85 unchanged lines hidden --- |