aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-05-28 16:36:51 +0100
committerMatt Caswell <matt@openssl.org>2015-05-28 16:55:15 +0100
commitd9f1c639d5162617ab0aeec23865771dc4fbcbcd (patch)
tree571e941976f42255a6457469f8198b5320eece07 /include
parent6b8f5d0d4379c2c366c3d07e4cdbb6145abc76d1 (diff)
downloadopenssl-d9f1c639d5162617ab0aeec23865771dc4fbcbcd.tar.gz
Change return type of the new accessors
The new accessors SSL_get_client_random, SSL_get_server_random and SSL_SESSION_get_master_key should return a size_t to match the type of the |outlen| parameter. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ssl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 261e399640..3e2dac6746 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -1652,12 +1652,12 @@ void SSL_set_state(SSL *ssl, int state);
void SSL_set_verify_result(SSL *ssl, long v);
__owur long SSL_get_verify_result(const SSL *ssl);
-__owur int SSL_get_client_random(const SSL *ssl, unsigned char *out,
- size_t outlen);
-__owur int SSL_get_server_random(const SSL *ssl, unsigned char *out,
- size_t outlen);
-__owur int SSL_SESSION_get_master_key(const SSL_SESSION *ssl,
- unsigned char *out, size_t outlen);
+__owur size_t SSL_get_client_random(const SSL *ssl, unsigned char *out,
+ size_t outlen);
+__owur size_t SSL_get_server_random(const SSL *ssl, unsigned char *out,
+ size_t outlen);
+__owur size_t SSL_SESSION_get_master_key(const SSL_SESSION *ssl,
+ unsigned char *out, size_t outlen);
__owur int SSL_set_ex_data(SSL *ssl, int idx, void *data);
void *SSL_get_ex_data(const SSL *ssl, int idx);