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
This commit is contained in:
Ulf Möller
2000-01-16 21:10:00 +00:00
parent b0bb2b914a
commit aa82db4fb4
17 changed files with 66 additions and 37 deletions

View File

@@ -56,12 +56,12 @@
* [including the GNU Public Licence.]
*/
#ifndef NO_RSA
#include "ssl_locl.h"
#ifndef NO_SSL2
#include <stdio.h>
#include <openssl/rsa.h>
#include <openssl/objects.h>
#include <openssl/md5.h>
#include "ssl_locl.h"
static long ssl2_default_timeout(void );
const char *ssl2_version_str="SSLv2" OPENSSL_VERSION_PTEXT;
@@ -421,7 +421,7 @@ int ssl2_shutdown(SSL *s)
s->shutdown=(SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
return(1);
}
#else /* !NO_RSA */
#else /* !NO_SSL2 */
# if PEDANTIC
static void *dummy=&dummy;