Rename redundant to double in guarding macros

This commit is contained in:
Gioacchino Mazzurco 2019-05-14 21:33:08 +02:00
parent c8082fdcc2
commit 0c097c2080
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
4 changed files with 6 additions and 6 deletions

View File

@ -1151,7 +1151,7 @@ int pqissl::Authorise_SSL_Connection()
// reset switch.
waiting = WAITING_NOT;
#ifdef RS_PQISSL_AUTH_REDUNDANT_CHECK
#ifdef RS_PQISSL_AUTH_DOUBLE_CHECK
X509* peercert = SSL_get_peer_certificate(ssl_connection);
if (!peercert)
{
@ -1239,7 +1239,7 @@ int pqissl::accept_locked( SSL *ssl, int fd,
constexpr int failure = -1;
constexpr int success = 1;
#ifdef RS_PQISSL_BANLIST_REDUNDANT_CHECK
#ifdef RS_PQISSL_BANLIST_DOUBLE_CHECK
/* At this point, as we are actively attempting the connection, we decide
* the address to which to connect to, banned addresses should never get
* here as the filtering for banned addresses happens much before, this

View File

@ -31,9 +31,9 @@
#include "pqi/pqi_base.h"
#include "pqi/authssl.h"
#define RS_PQISSL_AUTH_REDUNDANT_CHECK 1
#define RS_PQISSL_AUTH_DOUBLE_CHECK 1
#define RS_PQISSL_BANLIST_REDUNDANT_CHECK 1
#define RS_PQISSL_BANLIST_DOUBLE_CHECK 1
#define WAITING_NOT 0

View File

@ -781,7 +781,7 @@ int pqissllistener::completeConnection(int fd, IncomingSSLInfo& info)
RsPgpId pgpId = RsX509Cert::getCertIssuer(*peercert);
RsPeerId newPeerId = RsX509Cert::getCertSslId(*peercert);
#ifdef RS_PQISSL_AUTH_REDUNDANT_CHECK
#ifdef RS_PQISSL_AUTH_DOUBLE_CHECK
/* At this point the actual connection authentication has already been
* performed in AuthSSL::VerifyX509Callback, any furter authentication check
* like the following two are redundant. */

View File

@ -32,7 +32,7 @@
#include "util/rsdebug.h"
#include "pqi/pqinetwork.h"
#define RS_PQISSL_AUTH_REDUNDANT_CHECK 1
#define RS_PQISSL_AUTH_DOUBLE_CHECK 1
/***************************** pqi Net SSL Interface *********************************
*/