|
@@ -1503,7 +1503,7 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
|
|
|
rend_service_authorization_t *client_auth =
|
|
|
rend_client_lookup_service_authorization(socks->address);
|
|
|
|
|
|
- const char *cookie = NULL;
|
|
|
+ const uint8_t *cookie = NULL;
|
|
|
rend_auth_type_t auth_type = REND_NO_AUTH;
|
|
|
if (client_auth) {
|
|
|
log_info(LD_REND, "Using previously configured client authorization "
|
|
@@ -1515,7 +1515,7 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
|
|
|
|
|
|
* a hidden service. */
|
|
|
rend_data_t *rend_data = ENTRY_TO_EDGE_CONN(conn)->rend_data =
|
|
|
- rend_data_client_create(socks->address, NULL, cookie, auth_type);
|
|
|
+ rend_data_client_create(socks->address, NULL, (char *) cookie, auth_type);
|
|
|
if (rend_data == NULL) {
|
|
|
return -1;
|
|
|
}
|