[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Matt Caswell
matt at openssl.org
Fri May 19 08:05:15 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via c231202e10a078fc52cd51301553a1a09a957f8f (commit)
via e68f0ea8d3c87a018646ac652b57a18da41cfbf6 (commit)
from 32c2da97c998bfb0687c4c08c97810dfcbf4ff7f (commit)
- Log -----------------------------------------------------------------
commit c231202e10a078fc52cd51301553a1a09a957f8f
Author: Matt Caswell <matt at openssl.org>
Date: Tue May 2 11:08:33 2017 +0100
Fix ASN1_TIME_to_generalizedtime to take a const ASN1_TIME
Fixes #1526
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3360)
(cherry picked from commit 9bfeeef8ee2220339e601a028fa991c30d296ed4)
commit e68f0ea8d3c87a018646ac652b57a18da41cfbf6
Author: Matt Caswell <matt at openssl.org>
Date: Tue May 2 11:00:50 2017 +0100
Make SSL_is_server() accept a const SSL
Fixes #1526
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3360)
(cherry picked from commit 6944311688015ad293bd788ce78f3226738ebf00)
-----------------------------------------------------------------------
Summary of changes:
crypto/asn1/a_time.c | 2 +-
include/openssl/asn1.h | 4 ++--
include/openssl/ssl.h | 2 +-
ssl/ssl_lib.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index db82d29..46f539c 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -59,7 +59,7 @@ int ASN1_TIME_check(const ASN1_TIME *t)
}
/* Convert an ASN1_TIME structure to GeneralizedTime */
-ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t,
+ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
ASN1_GENERALIZEDTIME **out)
{
ASN1_GENERALIZEDTIME *ret = NULL;
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index df764c5..35637cc 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -625,8 +625,8 @@ ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,
int offset_day, long offset_sec);
int ASN1_TIME_check(const ASN1_TIME *t);
-ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZEDTIME
- **out);
+ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
+ ASN1_GENERALIZEDTIME **out);
int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
int i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a);
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index b2132f3..6f0f361 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -1832,7 +1832,7 @@ void SSL_set_not_resumable_session_callback(SSL *ssl,
# endif
__owur int SSL_session_reused(SSL *s);
-__owur int SSL_is_server(SSL *s);
+__owur int SSL_is_server(const SSL *s);
__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
int SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index cf24615..9f9dce6 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -3776,7 +3776,7 @@ int SSL_session_reused(SSL *s)
return s->hit;
}
-int SSL_is_server(SSL *s)
+int SSL_is_server(const SSL *s)
{
return s->server;
}
More information about the openssl-commits
mailing list