From 4fbfe86ae3c5a829ea1a259330921bd5549223a5 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 16 Feb 2017 17:04:40 +0000 Subject: Don't use an enum in the return type for a public API function We use an int instead. That means SSL_key_update() also should use an int. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2609) --- ssl/ssl_lib.c | 4 ++-- ssl/ssl_locl.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ssl') diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index cb5e0cfbc9..e8274a1c05 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1718,7 +1718,7 @@ int SSL_shutdown(SSL *s) } } -int SSL_key_update(SSL *s, SSL_KEY_UPDATE updatetype) +int SSL_key_update(SSL *s, int updatetype) { /* * TODO(TLS1.3): How will applications know whether TLSv1.3+ has been @@ -1746,7 +1746,7 @@ int SSL_key_update(SSL *s, SSL_KEY_UPDATE updatetype) return 1; } -SSL_KEY_UPDATE SSL_get_key_update_type(SSL *s) +int SSL_get_key_update_type(SSL *s) { return s->key_update; } diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 991766f05b..70a47a8f54 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -1177,7 +1177,7 @@ struct ssl_st { */ int renegotiate; /* If sending a KeyUpdate is pending */ - SSL_KEY_UPDATE key_update; + int key_update; # ifndef OPENSSL_NO_SRP /* ctx for SRP authentication */ SRP_CTX srp_ctx; -- cgit v1.2.3