[tor-commits] [tor/master] hs: Rename rend_mid_introduce() with legacy semantic

nickm at torproject.org nickm at torproject.org
Wed Jan 18 22:15:59 UTC 2017


commit 5208085be1deff4711b634b108052970aed6a127
Author: David Goulet <dgoulet at torproject.org>
Date:   Tue Nov 15 14:29:02 2016 -0500

    hs: Rename rend_mid_introduce() with legacy semantic
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 src/or/hs_intropoint.c | 2 +-
 src/or/rendmid.c       | 4 ++--
 src/or/rendmid.h       | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/or/hs_intropoint.c b/src/or/hs_intropoint.c
index 2da3ee9..b7dae7d 100644
--- a/src/or/hs_intropoint.c
+++ b/src/or/hs_intropoint.c
@@ -577,7 +577,7 @@ hs_intro_received_introduce1(or_circuit_t *circ, const uint8_t *request,
   /* We are sure here to have at least DIGEST_LEN bytes. */
   if (introduce1_cell_is_legacy(request)) {
     /* Handle a legacy cell. */
-    ret = rend_mid_introduce(circ, request, request_len);
+    ret = rend_mid_introduce_legacy(circ, request, request_len);
   } else {
     /* Handle a non legacy cell. */
     ret = handle_introduce1(circ, request, request_len);
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index 89d2482..57c8cfa 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -133,8 +133,8 @@ rend_mid_establish_intro_legacy(or_circuit_t *circ, const uint8_t *request,
  * INTRODUCE2 cell.
  */
 int
-rend_mid_introduce(or_circuit_t *circ, const uint8_t *request,
-                   size_t request_len)
+rend_mid_introduce_legacy(or_circuit_t *circ, const uint8_t *request,
+                          size_t request_len)
 {
   or_circuit_t *intro_circ;
   char serviceid[REND_SERVICE_ID_LEN_BASE32+1];
diff --git a/src/or/rendmid.h b/src/or/rendmid.h
index 374f2b7..347d745 100644
--- a/src/or/rendmid.h
+++ b/src/or/rendmid.h
@@ -14,8 +14,8 @@
 
 int rend_mid_establish_intro_legacy(or_circuit_t *circ, const uint8_t *request,
                                     size_t request_len);
-int rend_mid_introduce(or_circuit_t *circ, const uint8_t *request,
-                       size_t request_len);
+int rend_mid_introduce_legacy(or_circuit_t *circ, const uint8_t *request,
+                              size_t request_len);
 int rend_mid_establish_rendezvous(or_circuit_t *circ, const uint8_t *request,
                                   size_t request_len);
 int rend_mid_rendezvous(or_circuit_t *circ, const uint8_t *request,





More information about the tor-commits mailing list