diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-07 03:15:16 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-07 03:15:16 +0000 |
commit | 5b454dc91cd79f44b2c3754a5f9d334d3ca099da (patch) | |
tree | 63fa65a666591aaef9c88dab327c32a88c21af1c /sbin/isakmpd | |
parent | 05c9757c3a23ab922418247f2ce3332d35e2605f (diff) |
Add some log_print()
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/policy.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c index f127f549882..0daf28ff1d7 100644 --- a/sbin/isakmpd/policy.c +++ b/sbin/isakmpd/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.29 2001/05/31 20:21:08 angelos Exp $ */ +/* $OpenBSD: policy.c,v 1.30 2001/06/07 03:15:15 angelos Exp $ */ /* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */ /* @@ -1849,16 +1849,22 @@ keynote_cert_get_key (void *scert, void *keyp) foo = LK (kn_read_asserts, ((char *)scert, strlen ((char *)scert), &num)); if (foo == NULL || num == 0) - return 0; + { + log_print ("keynote_cert_get_key: failed to decompose credentials"); + return 0; + } sid = LK (kn_add_assertion, (keynote_sessid, foo[num - 1], - strlen (scert), 0)); + strlen (foo[num - 1]), 0)); while (num--) free (foo[num]); free (foo); if (sid == -1) - return 0; + { + log_print ("keynote_cert_get_key: failed to add assertion"); + return 0; + } *(RSA **)keyp = NULL; |