#include "ks_array.h"
#include "ks_number.h"
#include "ks_string.h"
Go to the source code of this file.
Declarations of types and functions defined in ks_bquery.c. Do not include this file directly in your client. Instead, include the application header file ks.h, which will include all the libkarmaclient headers for you.
Definition in file ks_bquery.h.
|
|
Definition at line 78 of file ks_bquery.h. |
|
|
Definition at line 76 of file ks_bquery.h. Referenced by main(). |
|
|
Domain name identity type. This is one of the possible values for the 3rd argument of ks_bquery_identity_add or ks_bquery_identity_add_tagged. Definition at line 54 of file ks_bquery.h. Referenced by main(). |
|
|
Definition at line 55 of file ks_bquery.h. |
|
|
Email address identity type. This will also allow reputation checks against the hostname or domain of the given email address. Definition at line 63 of file ks_bquery.h. Referenced by main(). |
|
|
Definition at line 64 of file ks_bquery.h. |
|
|
IPv4 address identity type. This is one of the possible values for the 3rd argument of ks_bquery_identity_add or ks_bquery_identity_add_tagged. Definition at line 36 of file ks_bquery.h. Referenced by main(). |
|
|
Definition at line 37 of file ks_bquery.h. Referenced by main(). |
|
|
IPv6 address identity type. This is one of the possible values for the 3rd argument of ks_bquery_identity_add or ks_bquery_identity_add_tagged. Definition at line 45 of file ks_bquery.h. Referenced by main(). |
|
|
Definition at line 46 of file ks_bquery.h. |
|
|
Definition at line 72 of file ks_bquery.h. |
|
|
URL identity type. This will also allow reputation checks against the domain hosting the URL. Definition at line 71 of file ks_bquery.h. Referenced by main(). |
|
|
The hostname of the default query server. Definition at line 82 of file ks_bquery.h. Referenced by main(). |
|
|
The port number of the default query server. Definition at line 85 of file ks_bquery.h. Referenced by main(). |
|
|
Definition at line 83 of file ks_bquery.h. Referenced by ks_socket_new(). |
|
|
Definition at line 86 of file ks_bquery.h. Referenced by ks_socket_new(). |
|
|
A tag which distinguishes the SMTP client IP from other IPs in a query. This tag is usually a singleton. Definition at line 91 of file ks_bquery.h. |
|
|
A tag which distinguishes the SMTP HELO domain from other domains in a query. This tag is usually a singleton. Definition at line 94 of file ks_bquery.h. |
|
|
A tag which distinguishes the SMTP MAIL-FROM address from other email addresses in a query. This tag is usually a singleton. Definition at line 97 of file ks_bquery.h. |
|
|
A tag which distinguishes an SMTP RCPT-TO address from other email addresses in a query. Definition at line 100 of file ks_bquery.h. |
|
|
A tag which distinguishes a header From: address from other email addresses in a query. This tag is usually a singleton. Definition at line 103 of file ks_bquery.h. |
|
|
Representation of libkarmaclient's bquery packet.
|
|
||||||||||||
|
Add an additional combiner ito be queried to a ks_bquery_t.
Definition at line 260 of file ks_bquery.c. References _ks_bquery_t::combiners, ks_array_add(), and ks_string_new(). |
|
||||||||||||
|
Add a composite (aka feedset) to be queried to a ks_bquery_packet.
Definition at line 245 of file ks_bquery.c. References _ks_bquery_t::composites, ks_array_add(), and ks_string_new(). Referenced by main(). |
|
||||||||||||
|
Adds a feed to be queried to a ks_bquery_t.
Definition at line 229 of file ks_bquery.c. References _ks_bquery_t::feeds, ks_array_add(), and ks_string_new(). Referenced by main(). |
|
||||||||||||
|
Set the flags in a ks_bquery_t.
Definition at line 355 of file ks_bquery.c. References _ks_bquery_t::flags, and ks_number_set(). Referenced by main(). |
|
|
Destroys a ks_bquery_t, freeing all memory that has been allocated for it.
Definition at line 159 of file ks_bquery.c. References _ks_bquery_t::combiners, _ks_bquery_t::composites, _ks_bquery_t::credentials, _ks_bquery_t::feeds, _ks_bquery_t::flags, _ks_bquery_t::id, _ks_bquery_t::identities, ks_array_fini(), ks_free(), ks_number_fini(), ks_string_free(), and _ks_bquery_t::principal. Referenced by main(). |
|
|
Determine whether or not a ks_bquery_t has authentication tokens.
Definition at line 386 of file ks_bquery.c. References _ks_bquery_t::principal. Referenced by ks_socket_send(). |
|
|
Returns the cookie value from a ks_bquery_t. If the ks_bquery_t does not already have an ID, one is generated and stored within it. libkarmaclient does not generate bquery packets that do not have cookies.
Definition at line 210 of file ks_bquery.c. References _ks_bquery_t::id, and ks_string_new(). Referenced by ks_socket_ask(). |
|
||||||||||||||||
|
Sets the value of the cookie for this query. This will be returned by the karmaserver in the response packet to allow the client to keep track of query/response pairs.
Definition at line 189 of file ks_bquery.c. References _ks_bquery_t::id, ks_string_new(), and ks_string_set(). |
|
||||||||||||||||
|
Add an identity (on which an opinion is sought from a karmaserver) to a ks_bquery_t. To pass additional context information about the identity, use ks_bquery_identity_add_tagged.
Definition at line 314 of file ks_bquery.c. |
|
||||||||||||||||||||
|
Add an identity (on which an opinion is sought from a karmaserver) and a tag string to a ks_bquery_t.
Definition at line 338 of file ks_bquery.c. References ks_array_add(), and ks_string_new(). |
|
|
Constructs a new ks_bquery_t. This function allocates memory that must be freed by ks_bquery_free().
Definition at line 135 of file ks_bquery.c. References _ks_bquery_t::base, _ks_bquery_t::combiners, _ks_bquery_t::composites, _ks_bquery_t::credentials, _ks_bquery_t::feeds, _ks_bquery_t::flags, _ks_bquery_t::id, _ks_bquery_t::identities, ks_array_init(), ks_malloc(), ks_number_init(), _ks_bquery_t::principal, and _ks_base_t::type. Referenced by main(). |
|
|
Convert a ks_bquery_t object into a bquery packet.
Definition at line 370 of file ks_bquery.c. References ks_string_new(). Referenced by ks_socket_send(). |
|
||||||||||||||||
|
Set authentication tokens for a bquery object.
Definition at line 407 of file ks_bquery.c. References _ks_bquery_t::credentials, ks_string_free(), ks_string_new(), ks_string_set(), and _ks_bquery_t::principal. Referenced by ks_socket_send(). |
|
|
Returns the metaclass for ks_bquery_t objects.
Definition at line 120 of file ks_bquery.c. |
1.4.4