summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorJohn Brooks <special@torproject.org>2016-05-09 13:43:14 -0400
committerJohn Brooks <special@torproject.org>2016-05-09 13:53:09 -0400
commit896271d525b2b31950572293c512224ca57cee02 (patch)
tree2f987b33a72911d566b385e90a66f47ea199f3cc /src/or/or.h
parentb531fc7d9a8f75969b0446578ee4afcb109bae3d (diff)
downloadtor-896271d525b2b31950572293c512224ca57cee02.tar.gz
tor-896271d525b2b31950572293c512224ca57cee02.zip
Use uint8_t for rend descriptor_cookie fields
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 8c40f1ab67..54e05e3bc6 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -778,7 +778,7 @@ typedef enum rend_auth_type_t {
/** Client-side configuration of authorization for a hidden service. */
typedef struct rend_service_authorization_t {
- char descriptor_cookie[REND_DESC_COOKIE_LEN];
+ uint8_t descriptor_cookie[REND_DESC_COOKIE_LEN];
char onion_address[REND_SERVICE_ADDRESS_LEN+1];
rend_auth_type_t auth_type;
} rend_service_authorization_t;
@@ -4851,7 +4851,7 @@ typedef enum {
/** Hidden-service side configuration of client authorization. */
typedef struct rend_authorized_client_t {
char *client_name;
- char descriptor_cookie[REND_DESC_COOKIE_LEN];
+ uint8_t descriptor_cookie[REND_DESC_COOKIE_LEN];
crypto_pk_t *client_key;
} rend_authorized_client_t;