diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2017-03-29 21:26:13 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-03-30 22:13:12 +0200 |
commit | a2dcdb57af656b9b623e68e6c7f6b52cb5d0fa48 (patch) | |
tree | 43e7d0c079f7531aa99d13df53f0d064037d22c0 /test | |
parent | a05053cdf45e30d34161d5a1ab68fa6f757bbc27 (diff) |
More typo fixes
Backport of 69687aa829bc8bdcaf5468eb3dd0ada13700b7aa
(Merged from #3069)
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3079)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/70-test_sslrecords.t | 2 | ||||
-rw-r--r-- | test/sslapitest.c | 12 | ||||
-rw-r--r-- | test/ssltest_old.c | 3 | ||||
-rw-r--r-- | test/testlib/OpenSSL/Test.pm | 2 |
4 files changed, 9 insertions, 10 deletions
diff --git a/test/recipes/70-test_sslrecords.t b/test/recipes/70-test_sslrecords.t index d3702f259a..83f59b2ac3 100644 --- a/test/recipes/70-test_sslrecords.t +++ b/test/recipes/70-test_sslrecords.t @@ -112,7 +112,7 @@ $proxy->clear(); $proxy->start(); ok(TLSProxy::Message->fail(), "Alert before SSLv2 ClientHello test"); -#Unregcognised record type tests +#Unrecognised record type tests #Test 10: Sending an unrecognised record type in TLS1.2 should fail $proxy->clear(); diff --git a/test/sslapitest.c b/test/sslapitest.c index 9caf5d107c..32fd18fbf0 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -45,7 +45,7 @@ static int execute_test_large_message(const SSL_METHOD *smeth, int certlen; if (certbio == NULL) { - printf("Can't load the certficate file\n"); + printf("Can't load the certificate file\n"); goto end; } chaincert = PEM_read_bio_X509(certbio, NULL, NULL, NULL); @@ -74,7 +74,7 @@ static int execute_test_large_message(const SSL_METHOD *smeth, * We assume the supplied certificate is big enough so that if we add * NUM_EXTRA_CERTS it will make the overall message large enough. The * default buffer size is requested to be 16k, but due to the way BUF_MEM - * works, it ends up allocing a little over 21k (16 * 4/3). So, in this test + * works, it ends up allocating a little over 21k (16 * 4/3). So, in this test * we need to have a message larger than that. */ certlen = i2d_X509(chaincert, NULL); @@ -331,11 +331,11 @@ static int test_tlsext_status_type(void) /* * We'll just use any old cert for this test - it doesn't have to be an OCSP - * specifc one. We'll use the server cert. + * specific one. We'll use the server cert. */ certbio = BIO_new_file(cert, "r"); if (certbio == NULL) { - printf("Can't load the certficate file\n"); + printf("Can't load the certificate file\n"); goto end; } id = OCSP_RESPID_new(); @@ -717,7 +717,7 @@ static int test_ssl_set_bio(int idx) /* * We want to maintain our own refs to these BIO, so do an up ref for each - * BIO that will have ownersip transferred in the SSL_set_bio() call + * BIO that will have ownership transferred in the SSL_set_bio() call */ if (irbio != NULL) BIO_up_ref(irbio); @@ -813,7 +813,7 @@ static int execute_test_ssl_bio(SSL_BIO_TEST_FIXTURE fix) */ BIO_push(sslbio, membio1); - /* Verify chaning the rbio/wbio directly does not cause leaks */ + /* Verify changing the rbio/wbio directly does not cause leaks */ if (fix.change_bio != NO_BIO_CHANGE) { membio2 = BIO_new(BIO_s_mem()); if (membio2 == NULL) { diff --git a/test/ssltest_old.c b/test/ssltest_old.c index ccb2edb52d..8f7e1e00d1 100644 --- a/test/ssltest_old.c +++ b/test/ssltest_old.c @@ -327,7 +327,6 @@ static int verify_servername(SSL *client, SSL *server) * next_protos_parse parses a comma separated list of strings into a string * in a format suitable for passing to SSL_CTX_set_next_protos_advertised. * outlen: (output) set to the length of the resulting buffer on success. - * err: (maybe NULL) on failure, an error message line is written to this BIO. * in: a NUL terminated string like "abc,def,ghi" * * returns: a malloced buffer or NULL on failure. @@ -1860,7 +1859,7 @@ int main(int argc, char *argv[]) goto err; } if (SSL_version(c_ssl) != version) { - BIO_printf(bio_err, "Unxpected version negotiated. " + BIO_printf(bio_err, "Unexpected version negotiated. " "Expected: %s, got %s\n", should_negotiate, SSL_get_version(c_ssl)); ret = 1; goto err; diff --git a/test/testlib/OpenSSL/Test.pm b/test/testlib/OpenSSL/Test.pm index f5f0665417..e9d02aaa70 100644 --- a/test/testlib/OpenSSL/Test.pm +++ b/test/testlib/OpenSSL/Test.pm @@ -964,7 +964,7 @@ sub __fixup_cmd { # Make sure to quotify the program file on platforms that may # have spaces or similar in their path name. # To our knowledge, VMS is the exception where quotifying should - # never happem. + # never happen. ($prog) = quotify($prog) unless $^O eq "VMS"; return $prefix.$prog; } |