mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
bgpsec-mbaer: add debug outputs
This commit is contained in:
parent
8e24b2bd92
commit
e526ddb6f3
@ -1113,8 +1113,8 @@ encode_bgpsec_attr(struct bgp_conn *conn,
|
|||||||
sigBuff, BGPSEC_MAX_SIG_LENGTH);
|
sigBuff, BGPSEC_MAX_SIG_LENGTH);
|
||||||
|
|
||||||
if ( 1 >= signature_len ) {
|
if ( 1 >= signature_len ) {
|
||||||
log(L_ERR "encode_bgpsec_attr:%c: %d > %d, Signing Failed",
|
log(L_ERR "encode_bgpsec_attr:%c: %d > %d, Signing Failed (SKI: %s)",
|
||||||
oMark, conn->bgp->local_as, conn->bgp->remote_as);
|
oMark, conn->bgp->local_as, conn->bgp->remote_as, conn->bgp->cf->bgpsec_ski);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -129,6 +129,7 @@ int bgpsec_sign_data_with_ascii_ski(const struct bgp_config *conf,
|
|||||||
if (snprintf(filename, sizeof(filename), "%s/%d.%s.key", rootPath, asn, ski) >= sizeof(filename) ||
|
if (snprintf(filename, sizeof(filename), "%s/%d.%s.key", rootPath, asn, ski) >= sizeof(filename) ||
|
||||||
bgpsec_load_private_key(conf, filename, &key) != BGPSEC_SUCCESS)
|
bgpsec_load_private_key(conf, filename, &key) != BGPSEC_SUCCESS)
|
||||||
{
|
{
|
||||||
|
log(L_ERR "Failed to load file %s", filename);
|
||||||
return BGPSEC_FAILURE;
|
return BGPSEC_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user