Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove unused gp_credential_handle conversion fns | Günther Deschner | 2012-07-06 | 1 | -34/+0 | |
| | | | | Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Use gp_encrypt_buffer and gp_decrypt_buffer. | Günther Deschner | 2012-07-06 | 1 | -4/+6 | |
| | | | | Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add encryption/decryption routines | Günther Deschner | 2012-07-06 | 1 | -0/+106 | |
| | | | | | | Use krb5 functions to AES encrypt/decrypt a buffer. Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Unify find creds | Simo Sorce | 2012-07-06 | 1 | -19/+20 | |
| | ||||||
* | Fix return status for release handle function. | Simo Sorce | 2012-07-06 | 1 | -2/+2 | |
| | | | | We were returning random values allocated on the stack in case of success. | |||||
* | Use gp_find_and_free_cred() in gp_release_handle(). | Günther Deschner | 2012-06-25 | 1 | -4/+1 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add gp_find_and_free_cred(). | Günther Deschner | 2012-06-25 | 2 | -0/+30 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add free_config() and call it when server shuts down. | Günther Deschner | 2012-06-25 | 3 | -0/+27 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Finally use ring buffer in import and export calls. | Günther Deschner | 2012-06-25 | 1 | -8/+84 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Make gp_import_gssx_cred() static, it is not used outside this file. | Günther Deschner | 2012-06-25 | 2 | -2/+1 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Pass down struct gp_service to import and export credential calls. | Günther Deschner | 2012-06-25 | 6 | -7/+15 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Allow to set per service ring buffer, with configurable size. | Günther Deschner | 2012-06-25 | 1 | -0/+45 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Set pointer to one of the existing ring buffers in service loading. | Günther Deschner | 2012-06-25 | 1 | -0/+8 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add gp_service_get_ring_buffer to retrieve buffer from a service. | Günther Deschner | 2012-06-25 | 2 | -0/+5 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add gp_ring_buffer pointer to struct gp_service. | Günther Deschner | 2012-06-25 | 1 | -0/+4 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add gp_read_gss_creds_from_ring_buffer/gp_write_gss_creds_to_ring_buffer. | Günther Deschner | 2012-06-25 | 1 | -0/+93 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add two ring_buffers to gp_config struct. | Günther Deschner | 2012-06-25 | 2 | -0/+36 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Add gp_init_ring_buffer/gp_free_ring_buffer. | Günther Deschner | 2012-06-25 | 2 | -1/+143 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Mention socket filename in debug output in init_unix_socket(). | Günther Deschner | 2012-06-21 | 1 | -1/+2 | |
| | | | | Guenther | |||||
* | Fix option_is_set() function. | Günther Deschner | 2012-06-21 | 1 | -1/+1 | |
| | | | | Guenther | |||||
* | use option_is_set() config parser helper. | Günther Deschner | 2012-05-31 | 1 | -7/+2 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Fix popt usage message for -d option. | Günther Deschner | 2012-05-31 | 1 | -1/+1 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | add option_is_set() helper function for config parsing. | Günther Deschner | 2012-05-31 | 1 | -0/+12 | |
| | | | | | | Guenther Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | Replace direct syslog calls with logging macros | Simo Sorce | 2012-04-15 | 4 | -23/+15 | |
| | ||||||
* | Add logging helpers | Simo Sorce | 2012-04-15 | 4 | -4/+71 | |
| | ||||||
* | Add some socket debugging | Simo Sorce | 2012-04-15 | 1 | -1/+14 | |
| | ||||||
* | gp_export: Add facility to export creds as gssx options | Simo Sorce | 2012-04-15 | 3 | -0/+268 | |
| | | | | Add Initial test implementation of the Linux Kernel NFS creds structure. | |||||
* | Change accept/init_sec_context to use the new export context functions | Simo Sorce | 2012-04-15 | 3 | -13/+23 | |
| | ||||||
* | Add support for linux kernel lucid ctx buffer format | Simo Sorce | 2012-04-15 | 1 | -11/+130 | |
| | ||||||
* | Move ctx_id function and add export type option | Simo Sorce | 2012-04-15 | 4 | -107/+152 | |
| | | | | | Move the function to export a context to gssx_ctx or import into gp_export.c Add function to check for exported_context_type option in call_ctx | |||||
* | Use gp_add_krb5_creds until cred store extensions are available. | Simo Sorce | 2012-04-15 | 2 | -35/+88 | |
| | ||||||
* | creds: add code to import krb5 credentials based on configuration. | Simo Sorce | 2012-04-05 | 15 | -15/+433 | |
| | ||||||
* | Depend on UCRED, we cannot work otherwise. | Simo Sorce | 2012-04-05 | 1 | -4/+0 | |
| | ||||||
* | config: Rework configuration syntax | Simo Sorce | 2012-04-05 | 2 | -139/+77 | |
| | | | | | | | Keeping 2 separate sections for credentials and services seem to just make things really confusing. The off chance of reusing a 'credential' section is dwarfed by the confusion cause by keeping them separate. Having to copy a full service section is not a big deal so KISS wins here. | |||||
* | Debug: Add debugging macro and config options | Simo Sorce | 2012-04-02 | 5 | -0/+38 | |
| | | | | Ticket #43 | |||||
* | Avoid double free on error. | Simo Sorce | 2012-04-02 | 1 | -10/+0 | |
| | | | | | There is no need to expliciltly free here, as gp_rpc_process_call already always frees the res structure. By doing this we cause double frees on errors. | |||||
* | conv: Fix typo causing bad output. | Simo Sorce | 2012-03-22 | 1 | -1/+1 | |
| | ||||||
* | gp_socket: properly handle fagment bit | Simo Sorce | 2012-03-22 | 2 | -2/+20 | |
| | ||||||
* | gp_socket: Optimize sending data with writev | Simo Sorce | 2012-03-22 | 1 | -21/+22 | |
| | | | | | | Turns out the Linux kernel expects to get the whole reply in a single operation. This optimizes the code to call one less syscall and makes it also more compact. So let's please the kernel and get better code in place. | |||||
* | Add option to request (or not) delegated credentials back | Simo Sorce | 2012-03-22 | 1 | -2/+7 | |
| | ||||||
* | gp_conv: Fix conversion functions after change to gss_proxy.x | Simo Sorce | 2012-03-21 | 1 | -8/+2 | |
| | ||||||
* | config: parse credential/service config sections | Simo Sorce | 2012-02-23 | 2 | -0/+277 | |
| | ||||||
* | gp_conv: use maj/min err codes with gp_conv_ctx_id_to_gssx too | Simo Sorce | 2012-02-23 | 4 | -17/+18 | |
| | ||||||
* | server: better handle return status | Simo Sorce | 2012-02-23 | 10 | -124/+181 | |
| | | | | Ticket #33 | |||||
* | Tidyup gp_accept_sec_context() | Simo Sorce | 2012-02-23 | 1 | -5/+2 | |
| | ||||||
* | workers: Fix handling of workers query handling | Simo Sorce | 2012-02-23 | 1 | -15/+13 | |
| | | | | | | Chekcing for query == NULL outside of the mutex was wrong as it may make us end up restarting operation on the value of q we just handed back as if it was a new query. We just need to always go through the conditional lock. | |||||
* | Implement init_sec_context mechglue function | Simo Sorce | 2012-02-09 | 2 | -0/+185 | |
| | ||||||
* | Implement server side init_sec_context function. | Simo Sorce | 2012-02-09 | 2 | -4/+139 | |
| | ||||||
* | gp_conv: Add function to import sec context | Simo Sorce | 2012-02-09 | 2 | -0/+17 | |
| | ||||||
* | gp_conv: return GSS_C_NO_OID if input is null or zero length. | Simo Sorce | 2012-02-09 | 1 | -0/+5 | |
| | | | | Fixes useless allocation in gp_conv_gssx_to_oid_alloc() |