aaron 01/11/16 17:21:32
Modified: flood flood_net_ssl.c
Log:
Decided to do this the right way. If we don't have FLOOD_HAS_OPENSSL
then define the functions so that they return APR_ENOTIMPL.
Revision Changes Path
1.12 +27 -2 httpd-test/flood/flood_net_ssl.c
Index: flood_net_ssl.c
===================================================================
RCS file: /home/cvs/httpd-test/flood/flood_net_ssl.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- flood_net_ssl.c 2001/11/17 00:23:28 1.11
+++ flood_net_ssl.c 2001/11/17 01:21:32 1.12
@@ -144,7 +144,7 @@
static unsigned long ssl_id(void)
{
- /* FIXME: This is lame and nor portable. -aaron */
+ /* FIXME: This is lame and not portable. -aaron */
return (unsigned long) apr_os_thread_current();
}
#endif
@@ -331,5 +331,30 @@
return APR_SUCCESS;
}
-#endif /* FLOOD_HAS_OPENSSL */
+#else /* FLOOD_HAS_OPENSSL */
+apr_status_t ssl_init_socket(apr_pool_t *pool)
+{
+ return APR_ENOTIMPL;
+}
+
+ssl_socket_t* ssl_open_socket(apr_pool_t *pool, request_t *r)
+{
+ return NULL;
+}
+
+void ssl_close_socket(ssl_socket_t *s)
+{
+}
+
+apr_status_t ssl_write_socket(ssl_socket_t *s, request_t *r)
+{
+ return APR_ENOTIMPL;
+}
+
+apr_status_t ssl_read_socket(ssl_socket_t *s, char *buf, int *buflen)
+{
+ return APR_ENOTIMPL;
+}
+
+#endif