aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-03-31 01:54:39 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-03-31 01:54:39 +0900
commit81c180a86c40a5396c7a19f1bde42d9c9a466db4 (patch)
tree41896aa900f95f39c8c71b49196e0af97db38708
parent12557a3445acc2f53321a3806f0478b998edb9a8 (diff)
downloadopenssl-topic/SSL_get_max_early_data-typofix.tar.gz
Fix a typo in the SSL_get_max_early_data() declarationstopic/SSL_get_max_early_data-typofix
SSL_get_max_early_data() recently added by 3fc8d856105e ("Construct the ticket_early_data_info extension", 2017-02-17) is supposed to take an SSL, but it doesn't.
-rw-r--r--doc/man3/SSL_read_early_data.pod2
-rw-r--r--include/openssl/ssl.h2
-rw-r--r--ssl/ssl_lib.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/man3/SSL_read_early_data.pod b/doc/man3/SSL_read_early_data.pod
index 4567de7480..dd57cefefb 100644
--- a/doc/man3/SSL_read_early_data.pod
+++ b/doc/man3/SSL_read_early_data.pod
@@ -19,7 +19,7 @@ SSL_get_early_data_status
int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);
uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);
int SSL_set_max_early_data(SSL *s, uint32_t max_early_data);
- uint32_t SSL_get_max_early_data(const SSL_CTX *s);
+ uint32_t SSL_get_max_early_data(const SSL *s);
uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);
int SSL_write_early_data(SSL *s, const void *buf, size_t num, size_t *written);
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 1041e3cef3..b1a8c696fb 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -800,7 +800,7 @@ SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);
uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);
int SSL_set_max_early_data(SSL *s, uint32_t max_early_data);
-uint32_t SSL_get_max_early_data(const SSL_CTX *s);
+uint32_t SSL_get_max_early_data(const SSL *s);
#ifdef __cplusplus
}
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index a76ee40680..61e1a7a4c8 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -4810,7 +4810,7 @@ int SSL_set_max_early_data(SSL *s, uint32_t max_early_data)
return 1;
}
-uint32_t SSL_get_max_early_data(const SSL_CTX *s)
+uint32_t SSL_get_max_early_data(const SSL *s)
{
return s->max_early_data;
}