summaryrefslogtreecommitdiff
path: root/ssl/s2_pkt.c
diff options
context:
space:
mode:
authorulf <ulf>2000-01-16 21:09:34 +0000
committerulf <ulf>2000-01-16 21:09:34 +0000
commit710197c3cd4da6426b7bb8020707f90b088e9781 (patch)
tree68a290d1cb9d10925682cfada090fa3659037747 /ssl/s2_pkt.c
parent8b2707ac47e79b67c4134abea6004f9f45738496 (diff)
downloadopenssl-710197c3cd4da6426b7bb8020707f90b088e9781.tar.gz
Add missing #ifndefs that caused missing symbols when building libssl
as a shared library without RSA. Use #ifndef NO_SSL2 instead of NO_RSA in ssl/s2*.c. Submitted by: Kris Kennaway <kris@hub.freebsd.org> Modified by Ulf Möller
Diffstat (limited to 'ssl/s2_pkt.c')
-rw-r--r--ssl/s2_pkt.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ssl/s2_pkt.c b/ssl/s2_pkt.c
index a1bb5bca4..56662f29f 100644
--- a/ssl/s2_pkt.c
+++ b/ssl/s2_pkt.c
@@ -56,10 +56,11 @@
* [including the GNU Public Licence.]
*/
+#include "ssl_locl.h"
+#ifndef NO_SSL2
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
-#include "ssl_locl.h"
static int read_n(SSL *s,unsigned int n,unsigned int max,unsigned int extend);
static int do_ssl_write(SSL *s, const unsigned char *buf, unsigned int len);
@@ -638,3 +639,10 @@ static int ssl_mt_error(int n)
}
return(ret);
}
+#else /* !NO_SSL2 */
+
+# if PEDANTIC
+static void *dummy=&dummy;
+# endif
+
+#endif