openssl: Fix some const issues with OpenSSL 1.1.0

This commit is contained in:
Tobias Brunner
2018-10-31 15:50:36 +01:00
parent fd3947d9e5
commit 8b4c2a1d8e
4 changed files with 26 additions and 10 deletions
@@ -26,7 +26,7 @@
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define OBJ_get0_data(o) ((o)->data)
#define OBJ_length(o) ((o)->length)
#define ASN1_STRING_get0_data(a) ASN1_STRING_data(a)
#define ASN1_STRING_get0_data(a) ASN1_STRING_data((ASN1_STRING*)a)
#endif
/**
@@ -165,7 +165,7 @@ chunk_t openssl_asn1_obj2chunk(ASN1_OBJECT *asn1)
/**
* Described in header.
*/
chunk_t openssl_asn1_str2chunk(ASN1_STRING *asn1)
chunk_t openssl_asn1_str2chunk(const ASN1_STRING *asn1)
{
if (asn1)
{
@@ -214,7 +214,7 @@ int openssl_asn1_known_oid(ASN1_OBJECT *obj)
/**
* Described in header.
*/
time_t openssl_asn1_to_time(ASN1_TIME *time)
time_t openssl_asn1_to_time(const ASN1_TIME *time)
{
chunk_t chunk;