Navigation


Changeset 979:b90cb4c07160 in freeDiameter for extensions/app_radgw


Ignore:
Timestamp:
Mar 15, 2013, 2:45:03 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Remove more newlines.

Location:
extensions/app_radgw
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/radius.c

    r974 r979  
    328328        for (i = 0; i < msg->radius.attr_used; i++) {
    329329                struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]);
    330                 fd_log_debug("    - Type: 0x%02hhx (%s)\n       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
     330                fd_log_debug("    - Type: 0x%02hhx (%s)       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
    331331                radius_msg_dump_attr_val(attr);
    332332        }
     
    335335                for (i = msg->ps_first; i < msg->ps_first + msg->ps_nb; i++) {
    336336                        struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]);
    337                         fd_log_debug("    - Type: 0x%02hhx (%s)\n       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
     337                        fd_log_debug("    - Type: 0x%02hhx (%s)       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
    338338                        radius_msg_dump_attr_val(attr);
    339339                }
     
    355355                                           auth, MD5_MAC_LEN);
    356356                if (attr == NULL) {
    357                         printf("WARNING: Could not add "
    358                                "Message-Authenticator\n");
     357                        printf("WARNING: Could not add Message-Authenticator\n");
    359358                        return -1;
    360359                }
     
    693692                if (tmp->type == RADIUS_ATTR_MESSAGE_AUTHENTICATOR) {
    694693                        if (attr != NULL) {
    695                                 printf("Multiple Message-Authenticator "
    696                                        "attributes in RADIUS message\n");
     694                                printf("Multiple Message-Authenticator attributes in RADIUS message\n");
    697695                                return 1;
    698696                        }
  • extensions/app_radgw/rgw_worker.c

    r974 r979  
    164164                if ((diam_msg == NULL) || ( fd_msg_parse_rules(diam_msg, fd_g_config->cnf_dict, NULL) ) ) {
    165165                        fd_log_debug("[radgw] No or invalid Diameter message was generated after processing the RADIUS command %hhd (%s)."
    166                                         " It may indicate a gateway configuration problem, or implementation issue in a plugin.\n",
     166                                        " It may indicate a gateway configuration problem, or implementation issue in a plugin.",
    167167                                        msg->radius.hdr->code, rgw_msg_code_str(msg->radius.hdr->code));
    168168                        /* We should also dump the conflicting rule here to help debug? */
     
    280280
    281281                if (pb) {
    282                         TRACE_DEBUG(INFO, "[radgw] WARNING: %d mandatory AVP in the Diameter answer have not been translated to RADIUS!\n Please use debug.rgwx for more information.", pb);
     282                        TRACE_DEBUG(INFO, "[radgw] WARNING: %d mandatory AVP in the Diameter answer have not been translated to RADIUS! Please use debug.rgwx for more information.", pb);
    283283                }
    284284        }
  • extensions/app_radgw/rgwx_auth.c

    r974 r979  
    14501450                                        if (ahdr->avp_value->u32 != 3) {
    14511451                                                fd_log_debug("[auth.rgwx] Received Diameter answer with Auth-Request-Type set to %d (%s) from server %.*s, session %.*s."
    1452                                                                 "  This may cause interoperability problems with RADIUS.\n",
     1452                                                                "  This may cause interoperability problems with RADIUS.",
    14531453                                                                ahdr->avp_value->u32,
    14541454                                                                (ahdr->avp_value->u32 == 1) ? "AUTHENTICATE_ONLY" :
  • extensions/app_radgw/rgwx_echodrop.c

    r974 r979  
    220220                        {
    221221                                fd_log_debug(   "[echodrop.rgwx] The extension is configured to echo some attributes from this message, but no session object has been created for it (yet)."
    222                                                 "  Please check your configuration file and include a session-generating extension BEFORE calling echodrop.rgwx to echo attributes.\n"
    223                                                 "  Please use debug.rgwx to retrieve more information.\n" );
     222                                                " Please check your configuration file and include a session-generating extension BEFORE calling echodrop.rgwx to echo attributes."
     223                                                " Please use debug.rgwx to retrieve more information." );
    224224                                return EINVAL;
    225225                        } );
Note: See TracChangeset for help on using the changeset viewer.