diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-24 19:39:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-24 19:39:45 +0000 |
commit | f9b0be526e2d08a93728ae92b450e92a09aadf82 (patch) | |
tree | 8fa99a4ba1b4ca2790f761337e8b50b04696ad94 /src/or/rendservice.c | |
parent | fa338d85db52e665012ffe40aba676ccb220b016 (diff) | |
download | tor-f9b0be526e2d08a93728ae92b450e92a09aadf82.tar.gz tor-f9b0be526e2d08a93728ae92b450e92a09aadf82.zip |
Use LD_BUG as appropriate; convert rend* and router* to new logging interface; use new circ_log_path interface
svn:r5302
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 930a375def..d5d6e1aef6 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -343,11 +343,11 @@ rend_service_load_keys(void) /* Create service file */ if (rend_get_service_id(s->private_key, s->service_id)<0) { - warn(LD_GENERAL, "Internal error: couldn't encode service ID."); + warn(LD_BUG, "Internal error: couldn't encode service ID."); return -1; } if (crypto_pk_get_digest(s->private_key, s->pk_digest)<0) { - warn(LD_GENERAL, "Bug: Couldn't compute hash of public key."); + warn(LD_BUG, "Bug: Couldn't compute hash of public key."); return -1; } if (strlcpy(fname,s->directory,sizeof(fname)) >= sizeof(fname) || @@ -534,12 +534,12 @@ rend_service_introduce(circuit_t *circuit, const char *request, size_t request_l /* Try DH handshake... */ dh = crypto_dh_new(); if (!dh || crypto_dh_generate_public(dh)<0) { - warn(LD_GENERAL,"Internal error: couldn't build DH state or generate public key."); + warn(LD_BUG,"Internal error: couldn't build DH state or generate public key."); goto err; } if (crypto_dh_compute_secret(dh, ptr+REND_COOKIE_LEN, DH_KEY_LEN, keys, DIGEST_LEN+CPATH_KEY_MATERIAL_LEN)<0) { - warn(LD_GENERAL, "Internal error: couldn't complete DH handshake"); + warn(LD_BUG, "Internal error: couldn't complete DH handshake"); goto err; } @@ -714,7 +714,7 @@ rend_service_intro_has_opened(circuit_t *circuit) len += 20; r = crypto_pk_private_sign_digest(service->private_key, buf+len, buf, len); if (r<0) { - warn(LD_GENERAL, "Internal error: couldn't sign introduction request."); + warn(LD_BUG, "Internal error: couldn't sign introduction request."); goto err; } len += r; @@ -881,7 +881,7 @@ upload_service_descriptor(rend_service_t *service, int version) version, service->private_key, &desc, &desc_len)<0) { - warn(LD_GENERAL, "Internal error: couldn't encode service descriptor; not uploading."); + warn(LD_BUG, "Internal error: couldn't encode service descriptor; not uploading."); return; } |