Classes | |
| class | Interface |
| This class is a singleton instance of CODEX_Client::Client. More... | |
| struct | codex_policy_t |
| C representation of a CODEX policy. More... | |
| struct | codex_credentials_t |
| C representation of a CODEX credentials object. More... | |
| struct | codex_binding_t |
| C representation of a CODEX name binding. More... | |
Functions | |
| void | codex_zero_policy (codex_policy_t *policy) |
| Zero the elements of a codex_policy_t. | |
| void | codex_zero_credentials (codex_credentials_t *credentials) |
| Zero the elements of a codex_credentials_t. | |
| void | codex_zero_binding (codex_binding_t *binding) |
| Zero the elements of a codex_binding_t. | |
| codex_policy_t * | codex_new_policy () |
| Allocate a new codex_policy_t. | |
| codex_credentials_t * | codex_new_credentials () |
| Allocate a new codex_credentials_t. | |
| codex_binding_t * | codex_new_binding () |
| Allocate a new codex_binding_t. | |
| void | codex_clear_policy (codex_policy_t *policy) |
| Clear a codex_policy_t. | |
| void | codex_clear_credentials (codex_credentials_t *credentials) |
| Clear a codex_credentials_t. | |
| void | codex_clear_binding (codex_binding_t *binding) |
| Clear a codex_binding_t. | |
| void | codex_free_policy (codex_policy_t *policy) |
| Free a codex_policy_t. | |
| void | codex_free_credentials (codex_credentials_t *credentials) |
| Free a codex_credentials_t. | |
| void | codex_free_binding (codex_binding_t *binding) |
| Free a codex_binding_t. | |
| int | codex_parse_binding (codex_binding_t *binding) |
| Parse the binding returned from codex_create_key to fill the various fields. | |
| int | codex_set_server (const char *name, int port) |
| Set the remote server. | |
| int | codex_set_service_key (const X509 *cert) |
| Set the service's RSA public key certificate. | |
| int | codex_set_key_pair (const X509 *cert, const RSA *key) |
| Set the client's RSA public/private key pair. | |
| int | codex_create_policy (const RSA *policy_pub_key, const RSA *owner_priv_key, codex_policy_t *policy) |
| Create a read/write policy. | |
| int | codex_issue_credentials (const RSA *client_pub_key, const RSA *policy_priv_key, codex_credentials_t *credentials) |
| Create read/write credentials. | |
| int | codex_create_key (const unsigned char *name, int length, const X509 *owner_cert, const codex_policy_t *read_policy, const codex_policy_t *write_policy, codex_binding_t *binding) |
| Bind a name and access control policies. | |
| int | codex_write_key (const unsigned char *name, int length, const BIGNUM *key_value, const codex_credentials_t *credentials, const RSA *cred_private_key, const codex_binding_t *binding) |
| Associate a value with a name. | |
| int | codex_read_key (const unsigned char *name, int length, const codex_credentials_t *credentials, const RSA *cred_private_key, BIGNUM **returned_key_value) |
| Retrieve the value associate with a name. | |
| int | codex_to_file (const char *fname) |
| Save the client's state to a file. | |
| int | codex_from_file (const char *fname) |
| Read the client's state from a file. | |
| void | codex_clean_up () |
| Clean up the local state. | |
An example of this might be a SWIG interface from which to build packages for Perl, Python, or Tcl.
|
|
Clear a codex_binding_t. This goes through an existing binding structure and clears all of the elements.
Definition at line 101 of file client_functions.cc. References codex_free_policy(), and codex_zero_binding(). Referenced by codex_create_key(), codex_free_binding(), and codex_parse_binding(). |
|
|
Clear a codex_credentials_t. This goes through an existing credentials structure and clears all of the elements.
Definition at line 93 of file client_functions.cc. References codex_zero_credentials(). Referenced by codex_free_credentials(), and codex_issue_credentials(). |
|
|
Clear a codex_policy_t. This goes through an existing policy structure and clears all of the elements.
Definition at line 86 of file client_functions.cc. References codex_zero_policy(). Referenced by codex_create_policy(), and codex_free_policy(). |
|
||||||||||||||||||||||||||||
|
Bind a name and access control policies.
Definition at line 398 of file client_functions.cc. References codex_clear_binding(), CODEX_Client::Client::createKey(), CODEX_Client::Interface::Interface::instance(), CODEX_Client::SignedMessage< MT, ST >::marshal(), and CODEX_Ciphers::Policy::unmarshal(). |
|
||||||||||||||||
|
Create a read/write policy.
Definition at line 307 of file client_functions.cc. References codex_clear_policy(), CODEX_Client::Client::createPolicy(), CODEX_Client::Interface::Interface::instance(), and CODEX_Ciphers::Policy::marshal(). |
|
|
Free a codex_binding_t. This will free the memory held by the structure as well as the structure itself, and should only be used with dynamically allocated codex_binding_t%s. Statically allocated structures should just call codex_clear_binding.
Definition at line 236 of file client_functions.cc. References codex_clear_binding(). |
|
|
Free a codex_credentials_t. This will free the memory held by the structure as well as the structure itself, and should only be used with dynamically allocated codex_credentials_t%s. Statically allocated structures should just call codex_clear_credentials.
Definition at line 228 of file client_functions.cc. References codex_clear_credentials(). |
|
|
Free a codex_policy_t. This will free the memory held by the structure as well as the structure itself, and should only be used with dynamically allocated codex_policy_t%s. Statically allocated structures should just call codex_clear_policy.
Definition at line 221 of file client_functions.cc. References codex_clear_policy(). Referenced by codex_clear_binding(). |
|
|
Read the client's state from a file.
Definition at line 602 of file client_functions.cc. References CODEX_Client::Client::fromFile(), and CODEX_Client::Interface::Interface::instance(). |
|
||||||||||||||||
|
Create read/write credentials.
Definition at line 351 of file client_functions.cc. References codex_clear_credentials(), CODEX_Client::Interface::Interface::instance(), CODEX_Client::Client::issueCredentials(), and CODEX_Ciphers::Credentials::marshal(). |
|
|
Parse the binding returned from codex_create_key to fill the various fields.
Definition at line 142 of file client_functions.cc. References codex_clear_binding(), CODEX_Client::Interface::codex_binding_t::data, CODEX_Ciphers::Policy::marshal(), CODEX_Client::SignedMessage< MT, ST >::message(), CODEX_Client::BoundNameMsg::name(), CODEX_Client::CreateKeyMsg::owner(), CODEX_Client::CreateKeyMsg::readP(), CODEX_Client::BoundNameMsg::request(), CODEX_Client::SignedMessage< MT, ST >::signature(), CODEX_Client::SignedMessage< MT, ST >::unmarshal(), CODEX_ASN1::BigNumber::value(), CODEX_ASN1::Certificate::value(), CODEX_ASN1::OctetString::value(), and CODEX_Client::CreateKeyMsg::writeP(). |
|
||||||||||||||||||||||||
|
Retrieve the value associate with a name.
Definition at line 529 of file client_functions.cc. References CODEX_Client::Interface::Interface::instance(), CODEX_Client::Client::readKey(), and CODEX_Ciphers::Credentials::unmarshal(). |
|
||||||||||||
|
Set the client's RSA public/private key pair.
Definition at line 283 of file client_functions.cc. References CODEX_Client::Interface::Interface::instance(), and CODEX_Client::Client::setKeyPair(). |
|
||||||||||||
|
Set the remote server.
Definition at line 244 of file client_functions.cc. References CODEX_Client::Interface::Interface::instance(), and CODEX_Client::Client::setRemoteServer(). |
|
|
Set the service's RSA public key certificate.
Definition at line 263 of file client_functions.cc. References CODEX_Client::Interface::Interface::instance(), and CODEX_Client::Client::setServiceKey(). |
|
|
Save the client's state to a file.
Definition at line 583 of file client_functions.cc. References CODEX_Client::Interface::Interface::instance(), and CODEX_Client::Client::toFile(). |
|
||||||||||||||||||||||||||||
|
Associate a value with a name.
Definition at line 467 of file client_functions.cc. References CODEX_Client::Interface::Interface::instance(), CODEX_Client::SignedMessage< MT, ST >::unmarshal(), CODEX_Ciphers::Credentials::unmarshal(), and CODEX_Client::Client::writeKey(). |
|
|
Zero the elements of a codex_binding_t. This does not do any memory management, it just provides a convenient single-call way to zero out everything. This is useful for statically allocated structures, just to make sure they're properly initialized.
Definition at line 72 of file client_functions.cc. Referenced by codex_clear_binding(), and codex_new_binding(). |
|
|
Zero the elements of a codex_credentials_t. This does not do any memory management, it just provides a convenient single-call way to zero out everything. This is useful for statically allocated structures, just to make sure they're properly initialized.
Definition at line 64 of file client_functions.cc. Referenced by codex_clear_credentials(), and codex_new_credentials(). |
|
|
Zero the elements of a codex_policy_t. This does not do any memory management, it just provides a convenient single-call way to zero out everything. This is useful for statically allocated structures, just to make sure they're properly initialized.
Definition at line 57 of file client_functions.cc. Referenced by codex_clear_policy(), and codex_new_policy(). |
1.4.1