diff options
author | Matt Caswell <matt@openssl.org> | 2017-03-02 15:05:36 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-02 17:44:16 +0000 |
commit | 0665b4edae3fec740ebe12fe2946d4cc9585ca86 (patch) | |
tree | 9db9d4c4601b51171bd62fc002ae0d87113c3c30 /test/sslapitest.c | |
parent | f533fbd44a36daac9cc304ff648782e366391b00 (diff) |
Rename SSL_write_early() to SSL_write_early_data()
This is for consistency with the rest of the API where all the functions
are called *early_data*.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
Diffstat (limited to 'test/sslapitest.c')
-rw-r--r-- | test/sslapitest.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index 1cd850c1ce..253e2021fc 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -1604,7 +1604,7 @@ static int test_early_data_read_write(void) goto end; /* Write and read some early data */ - if (!SSL_write_early(clientssl, MSG1, strlen(MSG1), &written) + if (!SSL_write_early_data(clientssl, MSG1, strlen(MSG1), &written) || written != strlen(MSG1)) { printf("Failed writing early data message 1\n"); goto end; @@ -1641,7 +1641,7 @@ static int test_early_data_read_write(void) } /* Even after reading normal data, client should be able write early data */ - if (!SSL_write_early(clientssl, MSG3, strlen(MSG3), &written) + if (!SSL_write_early_data(clientssl, MSG3, strlen(MSG3), &written) || written != strlen(MSG3)) { printf("Failed writing early data message 3\n"); goto end; @@ -1701,7 +1701,7 @@ static int test_early_data_read_write(void) } /* Client and server should not be able to write early data now */ - if (SSL_write_early(clientssl, MSG6, strlen(MSG6), &written)) { + if (SSL_write_early_data(clientssl, MSG6, strlen(MSG6), &written)) { printf("Unexpected success writing early data\n"); goto end; } @@ -1745,7 +1745,7 @@ static int test_early_data_read_write(void) } /* Write and read some early data */ - if (!SSL_write_early(clientssl, MSG1, strlen(MSG1), &written) + if (!SSL_write_early_data(clientssl, MSG1, strlen(MSG1), &written) || written != strlen(MSG1)) { printf("Failed writing early data message 1\n"); goto end; @@ -1779,7 +1779,7 @@ static int test_early_data_read_write(void) } /* Client and server should not be able to write early data now */ - if (SSL_write_early(clientssl, MSG6, strlen(MSG6), &written)) { + if (SSL_write_early_data(clientssl, MSG6, strlen(MSG6), &written)) { printf("Unexpected success writing early data (2)\n"); goto end; } @@ -1847,7 +1847,7 @@ static int test_early_data_skip(void) } /* Write some early data */ - if (!SSL_write_early(clientssl, MSG1, strlen(MSG1), &written) + if (!SSL_write_early_data(clientssl, MSG1, strlen(MSG1), &written) || written != strlen(MSG1)) { printf("Failed writing early data message 1\n"); goto end; @@ -2008,7 +2008,7 @@ static int test_early_data_not_expected(void) goto end; /* Write some early data */ - if (!SSL_write_early(clientssl, MSG1, strlen(MSG1), &written)) { + if (!SSL_write_early_data(clientssl, MSG1, strlen(MSG1), &written)) { printf("Unexpected failure writing message 1\n"); goto end; } |