Commit d29b4cf4 authored by Simon Morlat's avatar Simon Morlat

Workaround for openssl>=1.1. otherName won't work

parent 0fdc9b48
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.38bc])
AC_INIT([sofia-sip], [1.13.39bc])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.13])
......
......@@ -754,6 +754,7 @@ int tls_post_connection_check(tport_t *self, tls_t *tls)
vp = X509V3_EXT_get(ext); if (!vp) continue;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
const unsigned char *in = ext->value->data;
GENERAL_NAMES *names = d2i_GENERAL_NAMES(NULL, &in, ext->value->length);
if (names == NULL) {
......@@ -777,6 +778,13 @@ int tls_post_connection_check(tport_t *self, tls_t *tls)
}
}
GENERAL_NAMES_free(names);
#else
/*
* The direct access of X509_EXTENSION struct fields is no longer possible in openssl>=1.1.
* It has to be re-implemented differently.
*/
#endif
d2i = X509V3_EXT_d2i(ext);
values = vp->i2v(vp, d2i, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment