diff options
author | Simo Sorce <simo@redhat.com> | 2012-02-23 17:57:58 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-04-05 11:20:33 -0400 |
commit | 34d8ca04e148263ffd4860718652eb474087f848 (patch) | |
tree | 10af3408150ec6dc1515d88f94c63afccec3245d /proxy/src/gp_socket.c | |
parent | 99d24402236ab621f8c03fdba49e7a75e38263a5 (diff) | |
download | gss-proxy-34d8ca04e148263ffd4860718652eb474087f848.tar.gz gss-proxy-34d8ca04e148263ffd4860718652eb474087f848.tar.xz gss-proxy-34d8ca04e148263ffd4860718652eb474087f848.zip |
creds: add code to import krb5 credentials based on configuration.
Diffstat (limited to 'proxy/src/gp_socket.c')
-rw-r--r-- | proxy/src/gp_socket.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c index 01c89fe..e42125c 100644 --- a/proxy/src/gp_socket.c +++ b/proxy/src/gp_socket.c @@ -35,15 +35,7 @@ #include <errno.h> #include <netinet/in.h> #include "gp_proxy.h" - -#define CRED_TYPE_NONE 0x00 -#define CRED_TYPE_UNIX 0x01 -#define CRED_TYPE_SELINUX 0x02 - -struct gp_creds { - int type; - struct ucred ucred; -}; +#include "gp_creds.h" #define FRAGMENT_BIT (1 << 31) @@ -69,6 +61,11 @@ struct gp_buffer { size_t pos; }; +struct gp_creds *gp_conn_get_creds(struct gp_conn *conn) +{ + return &conn->creds; +} + void gp_conn_free(struct gp_conn *conn) { if (conn->us.sd != -1) { |