2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #ifndef GSSCREDENTIAL_H
9 #define GSSCREDENTIAL_H
11 #include "utils/util_json.h"
12 #include <gssapi/gssapi.h>
15 typedef OM_uint32 (KRB5_CALLCONV *gss_acq_cred_type)(
16 OM_uint32 *, /* minor_status */
17 gss_name_t, /* desired_name */
18 OM_uint32, /* time_req */
19 gss_OID_set, /* desired_mechs */
20 gss_cred_usage_t, /* cred_usage */
21 gss_cred_id_t *, /* output_cred_handle */
22 gss_OID_set *, /* actual_mechs */
23 OM_uint32 *); /* time_rec */
31 GSSCredential(const GSSCredential &other);
32 GSSCredential(gss_cred_id_t cred) : credential(cred) {};
35 GSSCredential& operator= (const GSSCredential &gsscred);
37 gss_cred_id_t toGss() const { return(credential); }
39 void setValue(gss_cred_id_t cred) { this->credential = cred; }
40 JSONObject *toJSONValue() { return( new JSONObject("not now") ); }
43 gss_cred_id_t credential;
47 #endif // GSSCREDENTIAL_H