name = username->vp_strvalue;
- RDEBUG3("Comparing name \"%s\" and check value \"%s\"", name, check->vp_strvalue);
+ RDEBUG3("Comparing name \"%s\" and check value \"%pV\"", name, &check->data);
len = strlen(check->vp_strvalue);
fr_pair_value_strcpy(vp, SSL_CIPHER_get_name(cipher));
fr_pair_add(&request->state, vp);
RINDENT();
- RDEBUG2("&session-state:TLS-Session-Cipher-Suite := \"%s\"", vp->vp_strvalue);
+ RDEBUG2("&session-state:%pP", vp);
REXDENT();
}
*/
vp = fr_pair_find_by_da(request->control, attr_tls_session_cert_file, TAG_ANY);
if (vp) {
- RDEBUG2("Loading TLS session certificate \"%s\"", vp->vp_strvalue);
+ RDEBUG2("Loading TLS session certificate \"%pV\"", &vp->data);
if (SSL_use_certificate_file(session->ssl, vp->vp_strvalue, SSL_FILETYPE_PEM) != 1) {
tls_log_error(request, "Failed loading TLS session certificate \"%s\"",
VP_VERIFY(response);
- RDEBUG2("MSCHAP-Error: %s", response->vp_strvalue);
+ RDEBUG2("MSCHAP-Error: %pV", &response->data);
/*
* Parse the new challenge out of the
fr_pair_value_bstrncpy(t->username, data + 1, data_len - 1);
- RDEBUG2("Got tunneled identity of %s", t->username->vp_strvalue);
+ RDEBUG2("Got tunneled identity of %pV", &t->username->data);
}
} /* else there WAS a t->username */
if (vp) {
server_cs = virtual_server_find(vp->vp_strvalue);
if (!server_cs) {
- REDEBUG2("Virtual server \"%s\" not found", vp->vp_strvalue);
+ REDEBUG2("Virtual server \"%pV\" not found", &vp->data);
error:
eap_tls_fail(request, eap_session);
return RLM_MODULE_INVALID;
{
rad_assert(check->vp_type == FR_TYPE_STRING);
- RINFO("Example-Paircmp called with \"%s\"", check->vp_strvalue);
+ RINFO("Example-Paircmp called with \"%pV\"", &check->data);
if (strcmp(check->vp_strvalue, "yes") == 0) return 0;
return 1;
(memcmp(check->vp_strvalue, resolved, check->vp_length) == 0)) eq = true;
talloc_free(resolved);
if (eq) {
- RDEBUG2("User found in group \"%s\". Comparison between membership: name "
- "(resolved from DN \"%s\"), check: name", check->vp_strvalue, value);
+ RDEBUG2("User found in group \"%pV\". Comparison between membership: name "
+ "(resolved from DN \"%s\"), check: name", &check->data, value);
rcode = RLM_MODULE_OK;
goto finish;
fr_pair_value_bstrncpy(vp, password, pass_size);
if (RDEBUG_ENABLED3) {
- RDEBUG3("Added eDirectory password. control:%s += '%s'", vp->da->name, vp->vp_strvalue);
+ RDEBUG3("Added eDirectory password. control:%pP", vp);
} else {
RDEBUG2("Added eDirectory password");
}
time_t now;
if (strspn(check->vp_strvalue, "0123456789: ") != strlen(check->vp_strvalue)) {
- RDEBUG2("Bad Time-Of-Day value \"%s\"", check->vp_strvalue);
+ RDEBUG2("Bad Time-Of-Day value \"%pV\"", &check->data);
return -1;
}
scan = atoi(p);
p = strchr(p, ':');
if ((scan > 23) || !p) {
- RDEBUG2("Bad Time-Of-Day value \"%s\"", check->vp_strvalue);
+ RDEBUG2("Bad Time-Of-Day value \"%pV\"", &check->data);
return -1;
}
when = scan * 3600;
scan = atoi(p);
if (scan > 59) {
- RDEBUG2("Bad Time-Of-Day value \"%s\"", check->vp_strvalue);
+ RDEBUG2("Bad Time-Of-Day value \"%pV\"", &check->data);
return -1;
}
when += scan * 60;
if (p) {
scan = atoi(p + 1);
if (scan > 59) {
- RDEBUG2("Bad Time-Of-Day value \"%s\"", check->vp_strvalue);
+ RDEBUG2("Bad Time-Of-Day value \"%pV\"", &check->data);
return -1;
}
when += scan;
continue;
}
RINDENT();
- RDEBUG3("%s", header->vp_strvalue);
+ RDEBUG3("%pV", &header->data);
REXDENT();
ctx->headers = curl_slist_append(ctx->headers, header->vp_strvalue);
*/
MEM(pair_update_request(&vp, inst->sql_user) >= 0);
fr_pair_value_strsteal(vp, expanded);
- RDEBUG2("SQL-User-Name set to '%s'", vp->vp_strvalue);
+ RDEBUG2("SQL-User-Name set to '%pV'", &vp->data);
return 0;
}
{
rad_assert(check->vp_type == FR_TYPE_STRING);
- RINFO("Test-Paircmp called with \"%s\"", check->vp_strvalue);
+ RINFO("Test-Paircmp called with \"%pV\"", &check->data);
if (strcmp(check->vp_strvalue, "yes") == 0) return 0;
return 1;
p[(5*3)+2] = '\0';
fr_pair_value_strsteal(vp, p);
- DEBUG2("Fixing WiMAX binary Calling-Station-Id to %s", vp->vp_strvalue);
+ DEBUG2("Fixing WiMAX binary Calling-Station-Id to %pV", &vp->data);
return RLM_MODULE_OK;
}
goto error;
}
- REDEBUG2("Trying to find user \"%s\" in group \"%s\"", username, check->vp_strvalue);
+ REDEBUG2("Trying to find user \"%s\" in group \"%pV\"", username, &check->data);
err = wbcCtxGetGroups(wb_ctx, username, &num_groups, &wb_groups);
switch (err) {
RINDENT();
if (RDEBUG_ENABLED3) {
- RDEBUG3("&request:Yubikey-OTP := '%s'", vp->vp_strvalue);
- RDEBUG3("&request:User-Password := '%s'", password->vp_strvalue);
+ RDEBUG3("&request:%pP", vp);
+ RDEBUG3("&request:%pP", password);
} else {
- RDEBUG2("&request:Yubikey-OTP := <<< secret >>>");
- RDEBUG2("&request:User-Password := <<< secret >>>");
+ RDEBUG2("&request:%s := <<< secret >>>", vp->da->name);
+ RDEBUG2("&request:%s := <<< secret >>>", password->da->name);
}
REXDENT();