--- ./ssl/ssl.h.orig	2010-01-06 17:37:38.000000000 +0100
+++ ./ssl/ssl.h	2010-06-08 14:30:14.369146400 +0200
@@ -1798,6 +1798,7 @@
 #endif

 /* TLS extensions functions */
+#ifndef OPENSSL_NO_TLSEXT
 int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);

 int SSL_set_session_ticket_ext_cb(SSL *s, tls_session_ticket_ext_cb_fn cb,
@@ -1805,6 +1806,7 @@

 /* Pre-shared secret session resumption functions */
 int SSL_set_session_secret_cb(SSL *s, tls_session_secret_cb_fn tls_session_secret_cb, void *arg);
+#endif

 /* BEGIN ERROR CODES */
 /* The following lines are auto generated by the script mkerr.pl. Any changes
