0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

bgpsec-mbaer: add debug outputs

This commit is contained in:
Pavel Tvrdik 2016-06-02 10:30:50 +02:00
parent 8e24b2bd92
commit e526ddb6f3
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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;
}