{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752056469,
"reponame":"openssl",
"desc":"OpenSSL",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"4a0ffe76e430ef3d3be610a21daeb75f",
"commit": {"type":"commit",
"time": 1491915248,
"time_ofs": 60,
"oid_tree": { "oid": "2d8eb1a72c880b9e27cdede1e255a5e9eaf57ebb", "alias": []},
"oid":{ "oid": "745dec3aed750d681a81a049152edbb57c1f8c2d", "alias": []},
"msg": "Update dtlstest to use the test infrastructure",
"sig_commit": { "git_time": { "time": 1491915248, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" },
"sig_author": { "git_time": { "time": 1491795901, "offset": 600 }, "name": "Pauli", "email": "paul.dale@oracle.com", "md5": "4616f8cb80bd6ce4dab75d05e07cd125" }},
"body": "Update dtlstest to use the test infrastructure\n\nReviewed-by: Rich Salz \u003crsalz@openssl.org\u003e\nReviewed-by: Matt Caswell \u003cmatt@openssl.org\u003e\n(Merged from https://github.com/openssl/openssl/pull/3170)"
,
"diff": "diff --git a/test/dtlstest.c b/test/dtlstest.c\nindex bc22d32..cb58b18 100644\n--- a/test/dtlstest.c\n+++ b/test/dtlstest.c\n@@ -1,5 +1,5 @@\n /*\n- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.\n+ * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \u0022License\u0022). You may not use\n * this file except in compliance with the License. You can obtain a copy\n@@ -48,31 +48,22 @@ static int test_dtls_unprocessed(int testidx)\n BIO *c_to_s_fbio, *c_to_s_mempacket;\n int testresult \u003d 0;\n \n- printf(\u0022Starting Test %d\u005cn\u0022, testidx);\n-\n- if (!create_ssl_ctx_pair(DTLS_server_method(), DTLS_client_method(), \u0026sctx,\n- \u0026cctx, cert, privkey)) {\n- printf(\u0022Unable to create SSL_CTX pair\u005cn\u0022);\n+ if (!TEST_true(create_ssl_ctx_pair(DTLS_server_method(),\n+ DTLS_client_method(), \u0026sctx,\n+ \u0026cctx, cert, privkey)))\n return 0;\n- }\n \n- if (!SSL_CTX_set_cipher_list(cctx, \u0022AES128-SHA\u0022)) {\n- printf(\u0022Failed setting cipher list\u005cn\u0022);\n- }\n+ if (!TEST_true(SSL_CTX_set_cipher_list(cctx, \u0022AES128-SHA\u0022)))\n+ goto end;\n \n c_to_s_fbio \u003d BIO_new(bio_f_tls_dump_filter());\n- if (c_to_s_fbio \u003d\u003d NULL) {\n- printf(\u0022Failed to create filter BIO\u005cn\u0022);\n+ if (!TEST_ptr(c_to_s_fbio))\n goto end;\n- }\n \n /* BIO is freed by create_ssl_connection on error */\n- if (!create_ssl_objects(sctx, cctx, \u0026serverssl1, \u0026clientssl1, NULL,\n- c_to_s_fbio)) {\n- printf(\u0022Unable to create SSL objects\u005cn\u0022);\n- ERR_print_errors_fp(stdout);\n+ if (!TEST_true(create_ssl_objects(sctx, cctx, \u0026serverssl1, \u0026clientssl1,\n+ NULL, c_to_s_fbio)))\n goto end;\n- }\n \n if (testidx \u003d\u003d 1)\n certstatus[RECORD_SEQUENCE] \u003d 0xff;\n@@ -89,11 +80,9 @@ static int test_dtls_unprocessed(int testidx)\n mempacket_test_inject(c_to_s_mempacket, (char *)certstatus,\n sizeof(certstatus), 1, INJECT_PACKET_IGNORE_REC_SEQ);\n \n- if (!create_ssl_connection(serverssl1, clientssl1, SSL_ERROR_NONE)) {\n- printf(\u0022Unable to create SSL connection\u005cn\u0022);\n- ERR_print_errors_fp(stdout);\n+ if (!TEST_true(create_ssl_connection(serverssl1, clientssl1,\n+ SSL_ERROR_NONE)))\n goto end;\n- }\n \n testresult \u003d 1;\n end:\n@@ -109,10 +98,8 @@ int test_main(int argc, char *argv[])\n {\n int testresult \u003d 1;\n \n- if (argc !\u003d 3) {\n- printf(\u0022Invalid argument count\u005cn\u0022);\n+ if (!TEST_int_eq(argc, 3))\n return 1;\n- }\n \n cert \u003d argv[1];\n privkey \u003d argv[2];\n","s":{"c":1752056469,"u": 50705}}
],"g": 51565,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}