diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-25 17:23:43 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-25 17:23:43 +0000 |
commit | 21910ef24718f8005826a8363b6fa6aea6cca145 (patch) | |
tree | 54ded622fa65f31f93fbcbd04d876345c6a13682 /sbin/isakmpd/ike_auth.c | |
parent | 47167191f09ba0d3c55764f63f6be1d9bcb1aa4b (diff) |
regress/crypto/Makefile: Merge with EOM 1.5
regress/dh/Makefile: Merge with EOM 1.7
regress/group/Makefile: Merge with EOM 1.9
regress/prf/Makefile: Merge with EOM 1.4
regress/rsakeygen/Makefile: Merge with EOM 1.8
regress/x509/Makefile: Merge with EOM 1.10
Makefile: Merge with EOM 1.62
attribute.c: Merge with EOM 1.10
sa.c: Merge with EOM 1.99
conf.c: Merge with EOM 1.20
crypto.c: Merge with EOM 1.28
isakmpd.c: Merge with EOM 1.45
connection.c: Merge with EOM 1.19
doi.h: Merge with EOM 1.28
field.c: Merge with EOM 1.11
exchange.c: Merge with EOM 1.116
ike_auth.c: Merge with EOM 1.44
pf_key_v2.c: Merge with EOM 1.37
ike_phase_1.c: Merge with EOM 1.22
ipsec.c: Merge with EOM 1.118
isakmp_doi.c: Merge with EOM 1.40
log.c: Merge with EOM 1.26
log.h: Merge with EOM 1.18
math_group.c: Merge with EOM 1.23
message.c: Merge with EOM 1.144
pf_encap.c: Merge with EOM 1.70
policy.c: Merge with EOM 1.18
timer.c: Merge with EOM 1.13
transport.c: Merge with EOM 1.41
udp.c: Merge with EOM 1.47
ui.c: Merge with EOM 1.37
x509.c: Merge with EOM 1.36
author: niklas
Made debug logging a compile time selectable feature
Diffstat (limited to 'sbin/isakmpd/ike_auth.c')
-rw-r--r-- | sbin/isakmpd/ike_auth.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sbin/isakmpd/ike_auth.c b/sbin/isakmpd/ike_auth.c index c7c82e89ad2..9ae7525212d 100644 --- a/sbin/isakmpd/ike_auth.c +++ b/sbin/isakmpd/ike_auth.c @@ -1,5 +1,5 @@ -/* $OpenBSD: ike_auth.c,v 1.21 2000/02/19 19:32:53 niklas Exp $ */ -/* $EOM: ike_auth.c,v 1.43 2000/02/19 07:58:54 niklas Exp $ */ +/* $OpenBSD: ike_auth.c,v 1.22 2000/02/25 17:23:40 niklas Exp $ */ +/* $EOM: ike_auth.c,v 1.44 2000/02/20 19:58:37 niklas Exp $ */ /* * Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -407,7 +407,7 @@ pre_shared_decode_hash (struct message *msg) memcpy (*hash_p, payload->p + ISAKMP_HASH_DATA_OFF, hashsize); snprintf (header, 80, "pre_shared_decode_hash: HASH_%c", initiator ? 'R' : 'I'); - log_debug_buf (LOG_MISC, 80, header, *hash_p, hashsize); + LOG_DBG_BUF ((LOG_MISC, 80, header, *hash_p, hashsize)); payload->flags |= PL_MARK; @@ -461,8 +461,8 @@ rsa_sig_decode_hash (struct message *msg) { cert = handler->cert_get (rawcert, rawlen); if (!cert) - log_debug (LOG_CRYPTO, 50, - "rsa_sig_decode_hash: certificate malformed"); + LOG_DBG ((LOG_CRYPTO, 50, + "rsa_sig_decode_hash: certificate malformed")); else { if (!handler->cert_get_key (cert, &key)) @@ -473,8 +473,8 @@ rsa_sig_decode_hash (struct message *msg) else { found++; - log_debug (LOG_CRYPTO, 40, - "rsa_sig_decode_hash: using cert from X509_STORE"); + LOG_DBG ((LOG_CRYPTO, 40, + "rsa_sig_decode_hash: using cert from X509_STORE")); exchange->recv_cert = cert; exchange->recv_certtype = handler->id; } @@ -499,10 +499,10 @@ rsa_sig_decode_hash (struct message *msg) handler = cert_get (GET_ISAKMP_CERT_ENCODING (p->p)); if (!handler) { - log_debug (LOG_MISC, 30, - "rsa_sig_decode_hash: no handler for %s CERT encoding", - constant_lookup (isakmp_certenc_cst, - GET_ISAKMP_CERT_ENCODING (p->p))); + LOG_DBG ((LOG_MISC, 30, + "rsa_sig_decode_hash: no handler for %s CERT encoding", + constant_lookup (isakmp_certenc_cst, + GET_ISAKMP_CERT_ENCODING (p->p)))); continue; } @@ -616,7 +616,7 @@ rsa_sig_decode_hash (struct message *msg) } snprintf (header, 80, "rsa_sig_decode_hash: HASH_%c", initiator ? 'R' : 'I'); - log_debug_buf (LOG_MISC, 80, header, *hash_p, hashsize); + LOG_DBG_BUF ((LOG_MISC, 80, header, *hash_p, hashsize)); p->flags |= PL_MARK; @@ -646,7 +646,7 @@ pre_shared_encode_hash (struct message *msg) snprintf (header, 80, "pre_shared_encode_hash: HASH_%c", initiator ? 'I' : 'R'); - log_debug_buf (LOG_MISC, 80, header, buf + ISAKMP_HASH_DATA_OFF, hashsize); + LOG_DBG_BUF ((LOG_MISC, 80, header, buf + ISAKMP_HASH_DATA_OFF, hashsize)); return 0; #else return -1; @@ -703,7 +703,7 @@ rsa_sig_encode_hash (struct message *msg) } } else - log_debug (LOG_MISC, 10, "rsa_sig_decode_hash: no certificate to send"); + LOG_DBG ((LOG_MISC, 10, "rsa_sig_decode_hash: no certificate to send")); key = ike_auth_get_key (IKE_AUTH_RSA_SIG, exchange->name, NULL); if (key == NULL) @@ -729,7 +729,7 @@ rsa_sig_encode_hash (struct message *msg) } snprintf (header, 80, "rsa_sig_encode_hash: HASH_%c", initiator ? 'I' : 'R'); - log_debug_buf (LOG_MISC, 80, header, buf, hashsize); + LOG_DBG_BUF ((LOG_MISC, 80, header, buf, hashsize)); data = malloc (LC (RSA_size, (key))); if (!data) @@ -764,7 +764,7 @@ rsa_sig_encode_hash (struct message *msg) memmove (buf + ISAKMP_SIG_SZ, buf, datalen); snprintf (header, 80, "rsa_sig_encode_hash: SIG_%c", initiator ? 'I' : 'R'); - log_debug_buf (LOG_MISC, 80, header, buf + ISAKMP_SIG_DATA_OFF, datalen); + LOG_DBG_BUF ((LOG_MISC, 80, header, buf + ISAKMP_SIG_DATA_OFF, datalen)); if (message_add_payload (msg, ISAKMP_PAYLOAD_SIG, buf, ISAKMP_SIG_SZ + datalen, 1)) { |