Merge pull request #83 from tumi8/fix_remaining_warnings_DTLS_ON
fixed clang warnings for DTLS ONmaster
commit
7d7097568d
|
@ -87,7 +87,7 @@ void msg_openssl_return_code(int level, const char *fn, int ret, int error) {
|
|||
if (error == SSL_ERROR_SYSCALL && ret==-1)
|
||||
oss << ", errno: " << strerror(errno);
|
||||
}
|
||||
msg(level,oss.str().c_str());
|
||||
msg(level, "%s", oss.str().c_str());
|
||||
msg_openssl_errors();
|
||||
}
|
||||
|
||||
|
|
|
@ -319,8 +319,10 @@ int IpfixReceiverDtlsUdpIpV4::DtlsConnection::accept() {
|
|||
if (ret==1) {
|
||||
state = CONNECTED;
|
||||
DPRINTF("SSL_accept() succeeded.");
|
||||
#ifdef DEBUG
|
||||
const char *str=SSL_CIPHER_get_name(SSL_get_current_cipher(ssl));
|
||||
DPRINTF("CIPHER is %s",(str != NULL)?str:"(NONE)");
|
||||
#endif
|
||||
if (parent.ssl_ctx.get_verify_peers()) {
|
||||
if (verify_peer()) {
|
||||
DPRINTF("Peer authentication successful.");
|
||||
|
|
|
@ -75,7 +75,6 @@ class IpfixReceiverDtlsUdpIpV4 : public IpfixReceiver, Sensor {
|
|||
const std::set<string> peerFqdns;
|
||||
friend int verify_peer_cb_udp(void *context, const char *dnsname);
|
||||
uint32_t statReceivedPackets; /**< number of received packets */
|
||||
unsigned int moduleId;
|
||||
|
||||
class DtlsConnection {
|
||||
public:
|
||||
|
@ -113,6 +112,7 @@ class IpfixReceiverDtlsUdpIpV4 : public IpfixReceiver, Sensor {
|
|||
}
|
||||
typedef std::map<IpfixRecord::SourceID,DtlsConnectionPtr,CompareSourceID> connections_map;
|
||||
connections_map connections;
|
||||
unsigned int moduleId;
|
||||
void idle_processing();
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Reference in New Issue