mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +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);
|
||||
|
||||
if ( 1 >= signature_len ) {
|
||||
log(L_ERR "encode_bgpsec_attr:%c: %d > %d, Signing Failed",
|
||||
oMark, conn->bgp->local_as, conn->bgp->remote_as);
|
||||
log(L_ERR "encode_bgpsec_attr:%c: %d > %d, Signing Failed (SKI: %s)",
|
||||
oMark, conn->bgp->local_as, conn->bgp->remote_as, conn->bgp->cf->bgpsec_ski);
|
||||
return -1;
|
||||
}
|
||||
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) ||
|
||||
bgpsec_load_private_key(conf, filename, &key) != BGPSEC_SUCCESS)
|
||||
{
|
||||
log(L_ERR "Failed to load file %s", filename);
|
||||
return BGPSEC_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user