[openssl-commits] [openssl] master update
Viktor Dukhovni
viktor at openssl.org
Fri Dec 4 18:59:26 UTC 2015
The branch master has been updated
via 1c86d8fd41458d35736ef5b04d7a76cbcf1a274c (commit)
from f6e9c5533101066b2c759986ae8694c0f1926735 (commit)
- Log -----------------------------------------------------------------
commit 1c86d8fd41458d35736ef5b04d7a76cbcf1a274c
Author: Viktor Dukhovni <openssl-users at dukhovni.org>
Date: Fri Dec 4 00:27:47 2015 -0500
Revert unnecessary SSL_CIPHER_get_bits API change
Reviewed-by: Rich Salz <rsalz at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
include/openssl/ssl.h | 2 +-
ssl/ssl_ciph.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index e3072e7..2f3f514 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -1391,7 +1391,7 @@ __owur int SSL_clear(SSL *s);
void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
__owur const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);
-__owur int32_t SSL_CIPHER_get_bits(const SSL_CIPHER *c, uint32_t *alg_bits);
+__owur int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits);
__owur char *SSL_CIPHER_get_version(const SSL_CIPHER *c);
__owur const char *SSL_CIPHER_get_name(const SSL_CIPHER *c);
__owur uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c);
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
index 58fd1fa..58acec4 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -1864,14 +1864,14 @@ const char *SSL_CIPHER_get_name(const SSL_CIPHER *c)
}
/* number of bits for symmetric cipher */
-int32_t SSL_CIPHER_get_bits(const SSL_CIPHER *c, uint32_t *alg_bits)
+int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits)
{
- int32_t ret = 0;
+ int ret = 0;
if (c != NULL) {
if (alg_bits != NULL)
- *alg_bits = c->alg_bits;
- ret = c->strength_bits;
+ *alg_bits = (int) c->alg_bits;
+ ret = (int) c->strength_bits;
}
return ret;
}
More information about the openssl-commits
mailing list