Navigation


Changeset 1186:56c36d1007b4 in freeDiameter for libfdcore/hooks.c


Ignore:
Timestamp:
Jun 7, 2013, 7:48:34 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/hooks.c

    r1168 r1186  
    420420                                }
    421421                                CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break);
    422                                 LOG_N("Connected to '%s', remote capabilities: ", peer ? peer->p_hdr.info.pi_diamid : "<unknown>");
     422                                char protobuf[40];
     423                                if (peer) {
     424                                        CHECK_FCT_DO(fd_peer_cnx_proto_info(&peer->p_hdr, protobuf, sizeof(protobuf)), break );
     425                                } else {
     426                                        protobuf[0] = '-';
     427                                        protobuf[1] = '\0';
     428                                }
     429                                LOG_N("Connected to '%s' (%s), remote capabilities: ", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", protobuf);
    423430                                LOG_SPLIT(FD_LOG_NOTICE, "   ", buf?:"<error dumping message>", NULL);
    424431                                break;
Note: See TracChangeset for help on using the changeset viewer.