aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-03-02 14:42:55 +0000
committerMatt Caswell <matt@openssl.org>2017-03-02 17:44:16 +0000
commitf533fbd44a36daac9cc304ff648782e366391b00 (patch)
tree43cb39ba3b60bd4fec763464082600971e2df208 /apps
parentef466accdc196fe796301a06cdc6e94cb315ae9b (diff)
downloadopenssl-f533fbd44a36daac9cc304ff648782e366391b00.tar.gz
Rename SSL_read_early() to SSL_read_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 'apps')
-rw-r--r--apps/s_server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 8d157642d5..3190eabab1 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -2211,13 +2211,13 @@ static int sv_body(int s, int stype, unsigned char *context)
}
if (early_data) {
- int write_header = 1, edret = SSL_READ_EARLY_ERROR;
+ int write_header = 1, edret = SSL_READ_EARLY_DATA_ERROR;
size_t readbytes;
- while (edret != SSL_READ_EARLY_FINISH) {
+ while (edret != SSL_READ_EARLY_DATA_FINISH) {
for (;;) {
- edret = SSL_read_early(con, buf, bufsize, &readbytes);
- if (edret != SSL_READ_EARLY_ERROR)
+ edret = SSL_read_early_data(con, buf, bufsize, &readbytes);
+ if (edret != SSL_READ_EARLY_DATA_ERROR)
break;
switch (SSL_get_error(con, 0)) {