Subject: | Remove SSL_get_tlsa_record_byname |
SSL_get_tlsa_record_byname is not included in OpenSSL git master; it was added optimistically in May to Net::SSLeay per http://comments.gmane.org/gmane.ietf.dane/653 but should probably be removed now to avoid "undefined symbol: SSL_get_tlsa_record_byname at /usr/lib/perl/5.14/DynaLoader.pm line 184." errors when linking against the latest version of OpenSSL (1.1.x DEV). Note that -DOPENSSL_NO_DANE did not result in a valid build.
The below patch excises DANE; all tests still pass.
--- SSLeay.c~ 2013-12-31 23:54:51.000000000 +0000
+++ SSLeay.c 2014-01-01 00:03:29.000000000 +0000
@@ -14305,31 +14305,7 @@
}
#endif
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_DANE)
-#define XSubPPtmpAACF 1
-
-XS(XS_Net__SSLeay_get_tlsa_record_byname); /* prototype to pass -Wmissing-prototypes */
-XS(XS_Net__SSLeay_get_tlsa_record_byname)
-{
-#ifdef dVAR
- dVAR; dXSARGS;
-#else
- dXSARGS;
-#endif
- if (items != 3)
- croak_xs_usage(cv, "name, port, type");
- {
- char * name = (char *)SvPV_nolen(ST(0));
- int port = (int)SvIV(ST(1));
- int type = (int)SvIV(ST(2));
-
- SSL_get_tlsa_record_byname(name, port, type);
- }
- XSRETURN_EMPTY;
-}
-
-#endif
#define REM_EOF "/* EOF - SSLeay.xs */"
#ifdef __cplusplus
extern "C"