summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_conv.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix formatting on noncompliant copyright linesRobbie Harwood2015-09-041-24/+1
| | | | | Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* Make name conversion more robust to failureSimo Sorce2014-01-151-10/+14
| | | | | | | | | | | | | | | | NTLMSSP does not have export_name functions yet, this was causing gss_export_composite_name() to fail with a GSS_S_UNAVAILABLE error. This should be ignored, however it wasn't and on top of that the output structure was initialized but held pointers to memory freed at exit (due to the error). Make the function not failed if a mechanism do not have composite export function, but if it does make sure the output is not littered with invalid pointers. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
* Add zero termination when the buffer is a stringSimo Sorce2014-01-151-0/+21
| | | | | | | | | | | | | This shouldn't be needed but apaprently there are a number of applications like mod_auth_kerb that just blindly assume the out buffer returned by gss_diplay_name() is a zero terminated string even though there is no guarantee it is in the API. To avoid annoying misbehavior we forcibly zero terminate strings copied and returned by the interposer. Fixes: https://fedorahosted.org/gss-proxy/ticket/101 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
* Fix use of unintialized variableSimo Sorce2013-04-031-1/+1
| | | | | | Found by Coverity Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix dereference after null checks found by CoveritySimo Sorce2013-04-031-3/+4
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix includesSimo Sorce2013-03-141-0/+1
| | | | | These includes are necessary when switching to gssrpc because they are not automatically dragged in via dependencies in system rpc.h
* Call gss_export_name_composite() from gp_conv_name_to_gssx().Günther Deschner2012-10-251-1/+22
| | | | Make sure to return success in gp_conv_name_to_gssx() at that point.
* Move ctx_id function and add export type optionSimo Sorce2012-04-151-103/+0
| | | | | 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
* creds: add code to import krb5 credentials based on configuration.Simo Sorce2012-04-051-2/+0
|
* conv: Fix typo causing bad output.Simo Sorce2012-03-221-1/+1
|
* gp_conv: Fix conversion functions after change to gss_proxy.xSimo Sorce2012-03-211-8/+2
|
* gp_conv: use maj/min err codes with gp_conv_ctx_id_to_gssx tooSimo Sorce2012-02-231-8/+12
|
* server: better handle return statusSimo Sorce2012-02-231-21/+34
| | | | Ticket #33
* gp_conv: Add function to import sec contextSimo Sorce2012-02-091-0/+16
|
* gp_conv: return GSS_C_NO_OID if input is null or zero length.Simo Sorce2012-02-091-0/+5
| | | | Fixes useless allocation in gp_conv_gssx_to_oid_alloc()
* gp_conv: Use correct type to calculate size of allocationSimo Sorce2012-02-091-1/+1
|
* gp_conv: Allow null oids as input in conversion functionsSimo Sorce2012-02-091-0/+12
|
* Add more helper functions to gp_convSimo Sorce2012-02-071-15/+50
|
* Implement server side import_and_canon_name()Simo Sorce2012-02-071-13/+70
| | | | | Also fix name conversion functions, to properly handle exporting/importing names.
* gssx_name -> display_name should not be a pointerSimo Sorce2012-02-071-18/+7
|
* Fix accept_sec_context to properly return src_nameSimo Sorce2012-02-051-0/+47
|
* Allow conversion of empty strings.Simo Sorce2012-02-031-0/+11
|
* Fix gp_conv_gssx_to_oid_allocSimo Sorce2012-02-031-0/+2
|
* Add server implementation of acquire_credSimo Sorce2012-02-011-3/+5
|
* Add helper to convert OID setsSimo Sorce2012-02-011-0/+73
|
* Add helper to convert an gssx name back to gss_name_tSimo Sorce2012-02-011-0/+13
|
* Add gp_memdup helperSimo Sorce2012-02-011-9/+23
|
* Simplify gssx_name structSimo Sorce2012-02-011-13/+2
| | | | | We do not need arrays here. When multiple names are required then an array of gssx_names is more appropriate.
* Fix double free in conversion functionSimo Sorce2012-02-011-4/+8
|
* Add gpm_display_status function to mechglue librarySimo Sorce2012-01-301-0/+69
| | | | | Also add method to save status per-thread Uses gccism for thread-local storage for now.
* gp_conv: Add helpers to alloc data when convertingSimo Sorce2012-01-291-0/+85
|
* Add helper to return status from rpc functionsSimo Sorce2012-01-251-0/+36
|
* Add gssx conversion functionsSimo Sorce2012-01-251-0/+335