summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_creds.h
blob: b1b3fb391c8809054e2ceac52ea59098d42bb3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */

#ifndef _GP_CREDS_H_
#define _GP_CREDS_H_

#include "config.h"
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <gssapi/gssapi.h>

#define CRED_TYPE_NONE 0x00
#define CRED_TYPE_UNIX 0x01
#define CRED_TYPE_SELINUX 0x02

struct gp_creds {
    int type;
    struct ucred ucred;
};

#endif /* _GP_CREDS_H_ */