summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_proxy.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2017-01-05 16:06:29 -0500
committerSimo Sorce <simo@redhat.com>2017-01-13 15:50:06 -0500
commit103f72370bc25e9ca152120e7917bc14a81e47a9 (patch)
tree3c5ca7a517ee571e79110afc4eae1497e369b6c9 /proxy/src/gp_proxy.h
parent2d49ba029e5b0fdaa4bafc3d5bca0cb1169c9877 (diff)
Parse cred_store struct earlier
This will provide immediate feedback if an option is incorrectly formatted as well as avoid multiple parsing when the cred store spec needs to be used in multiple places. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src/gp_proxy.h')
-rw-r--r--proxy/src/gp_proxy.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h
index c7f4bb2..abcd201 100644
--- a/proxy/src/gp_proxy.h
+++ b/proxy/src/gp_proxy.h
@@ -6,6 +6,7 @@
#include <libintl.h>
#include <stdbool.h>
#include <stdint.h>
+#include <gssapi/gssapi_ext.h>
#include "verto.h"
#include "gp_common.h"
#include "gp_selinux.h"
@@ -21,8 +22,7 @@ struct gp_creds_handle;
struct gp_cred_krb5 {
char *principal;
- const char **cred_store;
- int cred_count;
+ gss_key_value_set_desc store;
struct gp_creds_handle *creds_handle;
};
@@ -86,6 +86,7 @@ struct gp_config *read_config(char *config_file, char *config_dir,
char *socket_name, int opt_daemonize);
struct gp_creds_handle *gp_service_get_creds_handle(struct gp_service *svc);
void free_config(struct gp_config **config);
+void free_cred_store_elements(gss_key_value_set_desc *cs);
/* from gp_init.c */
void init_server(bool daemonize, int *wait_fd);