mirror of
https://github.com/anope/anope.git
synced 2026-06-27 04:16:36 +02:00
Fixed the Makefiles to build m_ssl correctly and marked m_ssl as permanent
This commit is contained in:
@@ -29,12 +29,12 @@ distclean: spotless
|
||||
|
||||
.c.so:
|
||||
$(MAKEBIN) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} \
|
||||
$(if $(shell grep RequiredLibraries $< | grep mysqlpp), $(MYSQL_ARGS)) \
|
||||
$(if $(shell grep RequiredLibraries $< | grep mysqlpp), $(MYSQL_ARGS)) $(if $(shell grep RequiredLibraries $< | grep ssl), -lssl) $(if $(shell grep RequiredLibraries $< | grep crypt), -lcrypt) \
|
||||
-I../${INCLUDEDIR} -o $@ $<
|
||||
|
||||
.cpp.so:
|
||||
$(MAKEBIN) $(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} \
|
||||
$(if $(shell grep RequiredLibraries $< | grep mysqlpp), $(MYSQL_ARGS)) \
|
||||
$(if $(shell grep RequiredLibraries $< | grep mysqlpp), $(MYSQL_ARGS)) $(if $(shell grep RequiredLibraries $< | grep ssl), -lssl) $(if $(shell grep RequiredLibraries $< | grep crypt), -lcrypt) \
|
||||
-I../${INCLUDEDIR} -o $@ $<
|
||||
|
||||
subs:
|
||||
|
||||
@@ -65,6 +65,7 @@ class SSLModule : public Module
|
||||
this->SetAuthor("Anope");
|
||||
this->SetVersion("$Id$");
|
||||
this->SetType(SUPPORTED);
|
||||
this->SetPermanent(true);
|
||||
|
||||
SSL_load_error_strings();
|
||||
SSLeay_add_ssl_algorithms();
|
||||
@@ -112,7 +113,6 @@ class SSLModule : public Module
|
||||
|
||||
SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2);
|
||||
SSL_CTX_set_options(ctx, SSL_OP_TLS_ROLLBACK_BUG | SSL_OP_ALL);
|
||||
// SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, always_accept_verify_cb);
|
||||
|
||||
ModuleManager::Attach(I_OnPreServerConnect, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user