}
}
RINDENT();
- RDEBUG2("%pP", vp);
+ RDEBUG3("%pP", vp);
REXDENT();
fr_cursor_append(cursor, vp);
identity = (char **)SSL_get_ex_data(session->ssl, FR_TLS_EX_INDEX_IDENTITY);
- if (RDEBUG_ENABLED2) {
+ if (RDEBUG_ENABLED3) {
buffer[0] = '\0';
X509_NAME_oneline(X509_get_subject_name(cert), buffer, sizeof(buffer));
buffer[sizeof(buffer) - 1] = '\0';
- RDEBUG2("Creating attributes for \"%s\":", buffer[0] ? buffer : "Cert missing subject OID");
+ RDEBUG3("Creating attributes for \"%s\":", buffer[0] ? buffer : "Cert missing subject OID");
}
/*
* tls_session_pairs_from_x509_cert contains a
* reference to cert_vps.
*/
- cert_vps = fr_cursor_current(&cursor);
+ cert_vps = fr_cursor_head(&cursor);
if (cert_vps) {
+ RDEBUG2("Adding certificate attributes to session-state");
+
/*
* Print out all the pairs we have so far
*/