[CDRIVER-2061] Compiler warning for openssl 1.1.0 Created: 17/Feb/17  Updated: 03/May/17  Resolved: 28/Mar/17

Status: Closed
Project: C Driver
Component/s: tls
Affects Version/s: 1.6.0
Fix Version/s: 1.7.0

Type: Improvement Priority: Minor - P4
Reporter: Jeroen Ooms Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-1509 Add OpenSSL 1.1 build into evergreen Closed

 Description   

mongoc/mongoc-openssl.c: In function ‘_mongoc_openssl_check_cert’:
mongoc/mongoc-openssl.c:316:16: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
                check = (char *) ASN1_STRING_data (name->d.ia5);
                ^~~~~
In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/ssl.h:50,
                 from mongoc/mongoc-openssl.c:24:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))



 Comments   
Comment by Githook User [ 28/Mar/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2061 Compiler warning for openssl 1.1.0
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3d5092e634575dce74338f21b81916516ab80417

Comment by A. Jesse Jiryu Davis [ 21/Feb/17 ]

Remember to output the OpenSSL version where we can see it in Evergreen - probably in the ./configure output

Generated at Wed Feb 07 21:14:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.