The new OpenSSL 4.0 will return const objects from these objects, so
make them const in our code as well.
Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
Message-Id: <
20260326110658.25741-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36291.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit
3316a18ebe6669d5e31b17ab0356a533b846d1bc)
{
int lastpos = -1;
int tmp = -1;
- X509_NAME_ENTRY *x509ne = NULL;
- ASN1_STRING *asn1 = NULL;
unsigned char *buf = NULL;
ASN1_OBJECT *field_name_obj = OBJ_txt2obj(field_name, 0);
return FAILURE;
}
- x509ne = X509_NAME_get_entry(x509, lastpos);
+ const X509_NAME_ENTRY *x509ne = X509_NAME_get_entry(x509, lastpos);
if (!x509ne)
{
return FAILURE;
}
- asn1 = X509_NAME_ENTRY_get_data(x509ne);
+ const ASN1_STRING *asn1 = X509_NAME_ENTRY_get_data(x509ne);
if (!asn1)
{
return FAILURE;