cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
Change subject: Use const specifices in extract_x509_field_ssl ...................................................................... Use const specifices in extract_x509_field_ssl 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 <[email protected]> Acked-by: Frank Lichtenheld <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg36291.html Signed-off-by: Gert Doering <[email protected]> --- M src/openvpn/ssl_verify_openssl.c 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/openvpn/ssl_verify_openssl.c b/src/openvpn/ssl_verify_openssl.c index d96879b..08946cd 100644 --- a/src/openvpn/ssl_verify_openssl.c +++ b/src/openvpn/ssl_verify_openssl.c @@ -195,8 +195,6 @@ { 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); @@ -222,13 +220,13 @@ 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; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a Gerrit-Change-Number: 1588 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos <[email protected]> Gerrit-Reviewer: flichtenheld <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
