1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 11:43:08 +02:00
openwrt-packages/unrealircd/patches/01-no_openssl_ripe.patch

26 lines
593 B
Diff
Raw Permalink Normal View History

2013-08-01 15:18:09 +03:00
--- a/include/struct.h
+++ b/include/struct.h
@@ -39,8 +39,10 @@
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/md5.h>
+#ifndef OPENSSL_NO_RIPEMD
#include <openssl/ripemd.h>
#endif
+#endif
#include "common.h"
#include "sys.h"
#include "hash.h"
--- a/include/auth.h
+++ b/include/auth.h
@@ -37,7 +37,9 @@ typedef struct {
#ifdef USE_SSL
#define AUTHENABLE_SHA1
#define AUTHENABLE_SSL_CLIENTCERT
+#ifndef OPENSSL_NO_RIPEMD
#define AUTHENABLE_RIPEMD160
+#endif
#define AUTHENABLE_SSL_CLIENTCERTFP
/* OpenSSL provides a crypt() */
#ifndef AUTHENABLE_UNIXCRYPT