![]() |
GNUnet
0.11.x
|
The request handle. More...
Data Fields | |
struct RequestHandle * | next |
DLL. More... | |
struct RequestHandle * | prev |
DLL. More... | |
struct GNUNET_GNS_LookupWithTldRequest * | gns_lookup |
Active GNS lookup. More... | |
char * | name |
Name to look up. More... | |
int | record_type |
Record type to look up. More... | |
struct GNUNET_REST_RequestHandle * | rest_handle |
Rest connection. More... | |
struct GNUNET_TIME_Relative | timeout |
Desired timeout for the lookup (default is no timeout). More... | |
struct GNUNET_SCHEDULER_Task * | timeout_task |
ID of a task associated with the resolution process. More... | |
GNUNET_REST_ResultProcessor | proc |
The plugin result processor. More... | |
void * | proc_cls |
The closure of the result processor. More... | |
char * | url |
The url. More... | |
char * | emsg |
Error response message. More... | |
int | response_code |
Response code. More... | |
const char * | data |
The data from the REST request. More... | |
size_t | data_size |
the length of the REST data More... | |
struct GNUNET_IDENTITY_Operation * | op |
IDENTITY Operation. More... | |
char * | record_name |
Records to store. More... | |
uint32_t | record_type |
Record type filter. More... | |
enum UpdateStrategy | update_strategy |
How to update the record set. More... | |
struct GNUNET_GNSRECORD_Data * | rd |
Records to store. More... | |
unsigned int | rd_count |
Number of records in rd. More... | |
struct GNUNET_NAMESTORE_QueueEntry * | ns_qe |
NAMESTORE Operation. More... | |
json_t * | resp_object |
Response object. More... | |
struct GNUNET_NAMESTORE_ZoneIterator * | list_it |
Handle to NAMESTORE it. More... | |
const struct GNUNET_IDENTITY_PrivateKey * | zone_pkey |
Private key for the zone. More... | |
struct EgoEntry * | ego_entry |
IDENTITY Operation. More... | |
json_t * | temp_array |
JSON temporary array. More... | |
char * | expiration_str |
Expiration time string. More... | |
const char * | address |
Address string. More... | |
char * | pubkey |
Iteration peer public key. More... | |
json_t * | response |
JSON response. More... | |
struct GNUNET_PEERINFO_IteratorContext * | list_it |
Handle to PEERINFO it. More... | |
struct GNUNET_IDENTITY_PrivateKey | priv_key |
Pointer to ego private key. More... | |
struct OIDC_Variables * | oidc |
OIDC variables. More... | |
struct GNUNET_GNS_LookupRequest * | gns_op |
GNS lookup op. More... | |
struct GNUNET_RECLAIM_AttributeList * | attr_idtoken_list |
Attribute claim list for id_token. More... | |
struct GNUNET_RECLAIM_AttributeList * | attr_userinfo_list |
Attribute claim list for userinfo. More... | |
struct GNUNET_RECLAIM_CredentialList * | credentials |
Credentials. More... | |
struct GNUNET_RECLAIM_PresentationList * | presentations |
Presentations. More... | |
struct GNUNET_RECLAIM_Operation * | idp_op |
Idp Operation. More... | |
struct GNUNET_SCHEDULER_Task * | consume_timeout_op |
Timeout task for consume. More... | |
struct GNUNET_RECLAIM_AttributeIterator * | attr_it |
Attribute iterator. More... | |
struct GNUNET_RECLAIM_CredentialIterator * | cred_it |
Credential iterator. More... | |
struct GNUNET_RECLAIM_TicketIterator * | ticket_it |
Ticket iterator. More... | |
struct GNUNET_RECLAIM_Ticket | ticket |
A ticket. More... | |
char * | access_token |
The passed access token. More... | |
char * | tld |
The tld for redirect. More... | |
char * | redirect_prefix |
The redirect prefix. More... | |
char * | redirect_suffix |
The redirect suffix. More... | |
char * | edesc |
Error response description. More... | |
int | public_client |
Public client. More... | |
struct GNUNET_RECLAIM_AttributeList * | attr_list |
Attribute claim list. More... | |
enum HTTP_PUT_REQUEST_STATE | state |
Current state of this request. More... | |
CURL * | easyhandle |
The curl easy handle. More... | |
struct GNUNET_ATS_Session * | s |
The related session. More... | |
struct RequestHandle * RequestHandle::next |
DLL.
Definition at line 87 of file plugin_rest_gns.c.
struct RequestHandle * RequestHandle::prev |
DLL.
Definition at line 92 of file plugin_rest_gns.c.
struct GNUNET_GNS_LookupWithTldRequest* RequestHandle::gns_lookup |
Active GNS lookup.
Definition at line 97 of file plugin_rest_gns.c.
Referenced by cleanup_handle(), get_gns_cont(), and handle_gns_response().
char * RequestHandle::name |
Name to look up.
The name to look up.
Definition at line 102 of file plugin_rest_gns.c.
Referenced by cleanup_handle(), ego_create(), get_gns_cont(), and handle_gns_response().
int RequestHandle::record_type |
Record type to look up.
Definition at line 107 of file plugin_rest_gns.c.
Referenced by get_gns_cont(), namestore_get(), namestore_list_iteration(), and ns_get_lookup_cb().
struct GNUNET_REST_RequestHandle * RequestHandle::rest_handle |
Rest connection.
Handle to rest request.
Definition at line 112 of file plugin_rest_gns.c.
Referenced by add_attribute_cont(), add_credential_cont(), build_authz_response(), consume_ticket_cont(), cookie_identity_interpretation(), ego_get_all(), ego_get_response(), get_url_parameter_copy(), login_cont(), namestore_add_or_update(), parse_credentials_basic_auth(), parse_credentials_post_body(), rest_config_process_request(), rest_copying_process_request(), rest_identity_process_request(), rest_process_request(), revoke_ticket_cont(), set_cont(), and userinfo_endpoint().
struct GNUNET_TIME_Relative RequestHandle::timeout |
Desired timeout for the lookup (default is no timeout).
Definition at line 117 of file plugin_rest_gns.c.
Referenced by rest_identity_process_request(), and rest_process_request().
struct GNUNET_SCHEDULER_Task * RequestHandle::timeout_task |
ID of a task associated with the resolution process.
Definition at line 122 of file plugin_rest_gns.c.
Referenced by cleanup_handle(), do_error(), do_timeout(), rest_identity_process_request(), and rest_process_request().
GNUNET_REST_ResultProcessor RequestHandle::proc |
The plugin result processor.
Definition at line 127 of file plugin_rest_gns.c.
Referenced by build_redirect(), consume_ticket(), consume_timeout(), create_finished(), del_finished(), delete_finished_cb(), do_error(), do_finished(), do_redirect_error(), do_userinfo_error(), ego_create(), ego_edit(), ego_get_all(), ego_get_for_subsystem(), ego_get_response(), finished_cont(), get_cont(), handle_gns_response(), login_cont(), login_redirect(), namestore_list_finished(), oidc_config_cors(), oidc_config_endpoint(), oidc_ticket_issue_cb(), options_cont(), peerinfo_list_finished(), rest_config_process_request(), rest_copying_process_request(), rest_identity_process_request(), rest_process_request(), return_response(), set_cont(), and token_endpoint().
void * RequestHandle::proc_cls |
The closure of the result processor.
Definition at line 132 of file plugin_rest_gns.c.
Referenced by build_redirect(), consume_ticket(), consume_timeout(), create_finished(), del_finished(), delete_finished_cb(), do_error(), do_finished(), do_redirect_error(), do_userinfo_error(), ego_create(), ego_edit(), ego_get_all(), ego_get_for_subsystem(), ego_get_response(), finished_cont(), get_cont(), handle_gns_response(), login_cont(), login_redirect(), namestore_list_finished(), oidc_config_cors(), oidc_config_endpoint(), oidc_ticket_issue_cb(), options_cont(), peerinfo_list_finished(), rest_config_process_request(), rest_copying_process_request(), rest_identity_process_request(), rest_process_request(), return_response(), set_cont(), and token_endpoint().
char * RequestHandle::url |
The url.
The URL.
Definition at line 137 of file plugin_rest_gns.c.
Referenced by add_attribute_cont(), add_credential_cont(), cleanup_handle(), delete_attribute_cont(), delete_credential_cont(), ego_create(), ego_delete_name(), ego_delete_pubkey(), ego_edit_name(), ego_edit_pubkey(), ego_edit_subsystem(), ego_get_name(), ego_get_pubkey(), ego_get_subsystem(), get_cont(), get_gns_cont(), list_attribute_cont(), list_credential_cont(), list_tickets_cont(), namestore_add_or_update(), namestore_delete(), namestore_get(), rest_config_process_request(), rest_identity_process_request(), rest_process_request(), and set_cont().
char * RequestHandle::emsg |
Error response message.
Definition at line 142 of file plugin_rest_gns.c.
Referenced by authorize_endpoint(), build_authz_response(), check_authorization(), cleanup_handle(), code_redirect(), consume_ticket_cont(), consume_timeout(), create_finished(), del_finished(), do_error(), do_finished(), do_redirect_error(), do_userinfo_error(), ego_create(), ego_delete_name(), ego_delete_pubkey(), ego_edit(), ego_edit_name(), ego_edit_pubkey(), ego_edit_subsystem(), ego_get_for_subsystem(), ego_get_name(), ego_get_pubkey(), ego_get_subsystem(), get_gns_cont(), handle_gns_response(), login_redirect(), lookup_redirect_uri_result(), namestore_add_or_update(), namestore_delete(), namestore_get(), namestore_iteration_error(), ns_lookup_error_cb(), oidc_attr_collect_finished_cb(), oidc_iteration_error(), oidc_ticket_issue_cb(), peerinfo_list_finished(), peerinfo_list_iteration(), revoke_ticket_cont(), token_endpoint(), and userinfo_endpoint().
int RequestHandle::response_code |
Response code.
HTTP response code.
Reponse code.
Definition at line 147 of file plugin_rest_gns.c.
Referenced by authorize_endpoint(), check_authorization(), consume_timeout(), del_finished(), do_error(), do_finished(), do_timeout(), do_userinfo_error(), ego_create(), ego_delete_name(), ego_delete_pubkey(), ego_edit_name(), ego_edit_pubkey(), ego_edit_subsystem(), ego_get_for_subsystem(), ego_get_name(), ego_get_pubkey(), ego_get_subsystem(), get_cont(), get_gns_cont(), handle_gns_response(), login_redirect(), namestore_add_or_update(), namestore_delete(), namestore_get(), oidc_iteration_error(), peerinfo_list_finished(), peerinfo_list_iteration(), rest_identity_process_request(), rest_process_request(), set_cont(), token_endpoint(), and userinfo_endpoint().
const char* RequestHandle::data |
The data from the REST request.
Definition at line 206 of file plugin_rest_identity.c.
Referenced by ego_create(), ego_edit(), ego_edit_subsystem(), and rest_process_request().
size_t RequestHandle::data_size |
the length of the REST data
Definition at line 216 of file plugin_rest_identity.c.
Referenced by ego_create(), ego_edit(), ego_edit_subsystem(), and rest_process_request().
struct GNUNET_IDENTITY_Operation * RequestHandle::op |
IDENTITY Operation.
Definition at line 221 of file plugin_rest_identity.c.
Referenced by do_finished(), ego_create(), ego_delete_name(), ego_delete_pubkey(), ego_edit(), ego_edit_subsystem(), and ego_get_subsystem().
char* RequestHandle::record_name |
Records to store.
Definition at line 176 of file plugin_rest_namestore.c.
Referenced by cleanup_handle(), namestore_add_or_update(), namestore_delete(), and namestore_get().
uint32_t RequestHandle::record_type |
Record type filter.
Definition at line 181 of file plugin_rest_namestore.c.
enum UpdateStrategy RequestHandle::update_strategy |
How to update the record set.
Definition at line 186 of file plugin_rest_namestore.c.
Referenced by namestore_add(), and namestore_update().
struct GNUNET_GNSRECORD_Data* RequestHandle::rd |
Records to store.
Definition at line 191 of file plugin_rest_namestore.c.
Referenced by cleanup_handle(), and namestore_add_or_update().
unsigned int RequestHandle::rd_count |
Number of records in rd.
Definition at line 196 of file plugin_rest_namestore.c.
Referenced by cleanup_handle(), and namestore_add_or_update().
struct GNUNET_NAMESTORE_QueueEntry* RequestHandle::ns_qe |
NAMESTORE Operation.
Definition at line 201 of file plugin_rest_namestore.c.
Referenced by cleanup_handle(), create_finished(), del_finished(), namestore_add_or_update(), namestore_delete(), namestore_get(), and ns_get_lookup_cb().
json_t * RequestHandle::resp_object |
Response object.
Definition at line 206 of file plugin_rest_namestore.c.
Referenced by attr_collect(), cleanup_handle(), consume_cont(), consume_ticket_cont(), cred_collect(), delete_attribute_cont(), delete_credential_cont(), list_attribute_cont(), list_credential_cont(), list_tickets_cont(), namestore_list_finished(), namestore_list_iteration(), ns_get_lookup_cb(), return_response(), and ticket_collect().
struct GNUNET_NAMESTORE_ZoneIterator* RequestHandle::list_it |
Handle to NAMESTORE it.
Definition at line 212 of file plugin_rest_namestore.c.
Referenced by cleanup_handle(), dump_pc(), namestore_get(), namestore_list_finished(), namestore_list_iteration(), peerinfo_get(), and peerinfo_list_iteration().
const struct GNUNET_IDENTITY_PrivateKey* RequestHandle::zone_pkey |
Private key for the zone.
Definition at line 217 of file plugin_rest_namestore.c.
Referenced by namestore_add_or_update(), namestore_delete(), namestore_get(), and rest_process_request().
struct EgoEntry * RequestHandle::ego_entry |
IDENTITY Operation.
Selected ego.
Definition at line 222 of file plugin_rest_namestore.c.
Referenced by authorize_endpoint(), check_authorization(), and code_redirect().
json_t* RequestHandle::temp_array |
JSON temporary array.
Definition at line 195 of file plugin_rest_peerinfo.c.
Referenced by cleanup_handle(), and dump_pc().
char* RequestHandle::expiration_str |
Expiration time string.
Definition at line 200 of file plugin_rest_peerinfo.c.
Referenced by cleanup_handle().
const char* RequestHandle::address |
Address string.
Definition at line 205 of file plugin_rest_peerinfo.c.
Referenced by cleanup_handle().
char* RequestHandle::pubkey |
Iteration peer public key.
Definition at line 210 of file plugin_rest_peerinfo.c.
Referenced by cleanup_handle().
json_t* RequestHandle::response |
JSON response.
Definition at line 215 of file plugin_rest_peerinfo.c.
Referenced by cleanup_handle(), dump_pc(), peerinfo_list_finished(), and peerinfo_list_iteration().
struct GNUNET_PEERINFO_IteratorContext* RequestHandle::list_it |
Handle to PEERINFO it.
Definition at line 220 of file plugin_rest_peerinfo.c.
struct GNUNET_IDENTITY_PrivateKey RequestHandle::priv_key |
Pointer to ego private key.
Definition at line 424 of file plugin_rest_openid_connect.c.
Referenced by code_redirect(), oidc_attr_collect_finished_cb(), oidc_cred_collect_finished_cb(), and oidc_ticket_issue_cb().
struct OIDC_Variables* RequestHandle::oidc |
OIDC variables.
Definition at line 429 of file plugin_rest_openid_connect.c.
Referenced by attr_in_claims_request(), authorize_endpoint(), build_authz_response(), build_redirect(), cleanup_handle(), client_redirect(), code_redirect(), cookie_identity_interpretation(), do_error(), do_redirect_error(), login_redirect(), lookup_redirect_uri_result(), oidc_cred_collect_finished_cb(), oidc_ticket_issue_cb(), rest_identity_process_request(), and tld_iter().
struct GNUNET_GNS_LookupRequest* RequestHandle::gns_op |
GNS lookup op.
Definition at line 434 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), client_redirect(), and lookup_redirect_uri_result().
struct GNUNET_RECLAIM_AttributeList* RequestHandle::attr_idtoken_list |
Attribute claim list for id_token.
Definition at line 444 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), code_redirect(), oidc_attr_collect(), oidc_attr_collect_finished_cb(), oidc_cred_collect(), oidc_cred_collect_finished_cb(), and oidc_ticket_issue_cb().
struct GNUNET_RECLAIM_AttributeList* RequestHandle::attr_userinfo_list |
Attribute claim list for userinfo.
Definition at line 449 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), code_redirect(), consume_ticket(), oidc_attr_collect(), oidc_cred_collect_finished_cb(), and userinfo_endpoint().
struct GNUNET_RECLAIM_CredentialList* RequestHandle::credentials |
Credentials.
Definition at line 454 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), oidc_attr_collect_finished_cb(), and oidc_cred_collect().
struct GNUNET_RECLAIM_PresentationList* RequestHandle::presentations |
Presentations.
Definition at line 459 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), consume_ticket(), and userinfo_endpoint().
struct GNUNET_RECLAIM_Operation * RequestHandle::idp_op |
Idp Operation.
Definition at line 470 of file plugin_rest_openid_connect.c.
Referenced by add_attribute_cont(), add_credential_cont(), cleanup_handle(), consume_ticket(), consume_ticket_cont(), consume_timeout(), delete_attribute_cont(), delete_credential_cont(), finished_cont(), oidc_cred_collect_finished_cb(), oidc_ticket_issue_cb(), revoke_ticket_cont(), and userinfo_endpoint().
struct GNUNET_SCHEDULER_Task* RequestHandle::consume_timeout_op |
Timeout task for consume.
Definition at line 475 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), consume_ticket(), consume_timeout(), and userinfo_endpoint().
struct GNUNET_RECLAIM_AttributeIterator * RequestHandle::attr_it |
Attribute iterator.
Definition at line 480 of file plugin_rest_openid_connect.c.
Referenced by attr_collect(), cleanup_handle(), code_redirect(), collect_finished_cb(), list_attribute_cont(), oidc_attr_collect(), and oidc_attr_collect_finished_cb().
struct GNUNET_RECLAIM_CredentialIterator * RequestHandle::cred_it |
Credential iterator.
Attribute iterator.
Definition at line 485 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), collect_finished_cb(), cred_collect(), list_credential_cont(), oidc_attr_collect_finished_cb(), oidc_cred_collect(), and oidc_cred_collect_finished_cb().
struct GNUNET_RECLAIM_TicketIterator * RequestHandle::ticket_it |
Ticket iterator.
Definition at line 491 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), collect_finished_cb(), list_tickets_cont(), oidc_attr_collect_finished_cb(), and ticket_collect().
struct GNUNET_RECLAIM_Ticket RequestHandle::ticket |
A ticket.
Definition at line 496 of file plugin_rest_openid_connect.c.
Referenced by consume_ticket(), consume_timeout(), oidc_ticket_issue_cb(), and userinfo_endpoint().
char* RequestHandle::access_token |
The passed access token.
Definition at line 526 of file plugin_rest_openid_connect.c.
Referenced by cleanup_handle(), consume_timeout(), and userinfo_endpoint().
char* RequestHandle::tld |
The tld for redirect.
Definition at line 531 of file plugin_rest_openid_connect.c.
Referenced by authorize_endpoint(), build_redirect(), cleanup_handle(), oidc_ticket_issue_cb(), and tld_iter().
char* RequestHandle::redirect_prefix |
The redirect prefix.
Definition at line 536 of file plugin_rest_openid_connect.c.
Referenced by build_redirect(), cleanup_handle(), lookup_redirect_uri_result(), and oidc_ticket_issue_cb().
char* RequestHandle::redirect_suffix |
The redirect suffix.
Definition at line 541 of file plugin_rest_openid_connect.c.
Referenced by build_redirect(), cleanup_handle(), lookup_redirect_uri_result(), and oidc_ticket_issue_cb().
char* RequestHandle::edesc |
Error response description.
Definition at line 551 of file plugin_rest_openid_connect.c.
Referenced by authorize_endpoint(), build_authz_response(), check_authorization(), cleanup_handle(), code_redirect(), consume_timeout(), do_error(), do_redirect_error(), do_userinfo_error(), login_redirect(), lookup_redirect_uri_result(), oidc_attr_collect_finished_cb(), oidc_ticket_issue_cb(), token_endpoint(), and userinfo_endpoint().
int RequestHandle::public_client |
Public client.
Definition at line 561 of file plugin_rest_openid_connect.c.
Referenced by check_authorization().
struct GNUNET_RECLAIM_AttributeList* RequestHandle::attr_list |
Attribute claim list.
Definition at line 185 of file plugin_rest_reclaim.c.
Referenced by cleanup_handle().
enum HTTP_PUT_REQUEST_STATE RequestHandle::state |
Current state of this request.
Definition at line 168 of file plugin_transport_http_client.c.
Referenced by client_connect(), client_connect_put(), client_put_disconnect(), client_run(), client_send_cb(), client_wake_up(), http_client_plugin_get_session(), and http_client_plugin_send().
CURL* RequestHandle::easyhandle |
The curl easy handle.
Definition at line 173 of file plugin_transport_http_client.c.
Referenced by client_connect(), client_connect_get(), client_connect_put(), client_delete_session(), client_put_disconnect(), client_receive(), client_run(), client_schedule(), client_send_cb(), client_wake_up(), and http_client_plugin_send().
struct GNUNET_ATS_Session* RequestHandle::s |
The related session.
Definition at line 178 of file plugin_transport_http_client.c.
Referenced by client_connect_get(), client_connect_put(), client_run(), and client_schedule().