diff --git a/src/tls_openssl.c b/src/tls_openssl.c index b77b5ba..2345b45 100644 --- a/src/tls_openssl.c +++ b/src/tls_openssl.c @@ -632,6 +632,9 @@ static X509 *_tls_cert_read(xmpp_conn_t *conn) static int _tls_xaddr_nid(void) { static int xaddr_nid = NID_undef; + if (xaddr_nid == NID_undef) { + xaddr_nid = OBJ_sn2nid("id-on-xmppAddr"); + } if (xaddr_nid == NID_undef) { xaddr_nid = OBJ_create("1.3.6.1.5.5.7.8.5", "id-on-xmppAddr", "XmppAddr Identifier");