gss_ctx_id_t context_handle,
krb5_flags *ticket_flags)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_GET_TKT_FLAGS_OID_LENGTH,
GSS_KRB5_GET_TKT_FLAGS_OID };
OM_uint32 major_status;
major_status = gss_inquire_sec_context_by_oid(minor_status,
context_handle,
- (const gss_OID)&req_oid,
+ (gss_OID)&req_oid,
&data_set);
if (major_status != GSS_S_COMPLETE)
return major_status;
gss_cred_id_t cred_handle,
krb5_ccache out_ccache)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_COPY_CCACHE_OID_LENGTH,
GSS_KRB5_COPY_CCACHE_OID };
OM_uint32 major_status;
major_status = gssspi_set_cred_option(minor_status,
cred_handle,
- (const gss_OID)&req_oid,
+ (gss_OID)&req_oid,
&req_buffer);
return major_status;
OM_uint32 num_ktypes,
krb5_enctype *ktypes)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_SET_ALLOWABLE_ENCTYPES_OID_LENGTH,
GSS_KRB5_SET_ALLOWABLE_ENCTYPES_OID };
OM_uint32 major_status;
major_status = gssspi_set_cred_option(minor_status,
cred,
- (const gss_OID)&req_oid,
+ (gss_OID)&req_oid,
&req_buffer);
return major_status;
const char *name,
const char **out_name)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_CCACHE_NAME_OID_LENGTH,
GSS_KRB5_CCACHE_NAME_OID };
OM_uint32 major_status;
req_buffer.value = &req;
major_status = gssspi_mech_invoke(minor_status,
- (const gss_OID)gss_mech_krb5,
- (const gss_OID)&req_oid,
+ (gss_OID)gss_mech_krb5,
+ (gss_OID)&req_oid,
&req_buffer);
return major_status;
OM_uint32 *minor_status,
void *kctx)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_FREE_LUCID_SEC_CONTEXT_OID_LENGTH,
GSS_KRB5_FREE_LUCID_SEC_CONTEXT_OID };
OM_uint32 major_status;
req_buffer.value = kctx;
major_status = gssspi_mech_invoke(minor_status,
- (const gss_OID)gss_mech_krb5,
- (const gss_OID)&req_oid,
+ (gss_OID)gss_mech_krb5,
+ (gss_OID)&req_oid,
&req_buffer);
return major_status;
OM_uint32 KRB5_CALLCONV
krb5_gss_register_acceptor_identity(const char *keytab)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_OID_LENGTH,
GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_OID };
OM_uint32 major_status;
req_buffer.value = (char *)keytab;
major_status = gssspi_mech_invoke(&minor_status,
- (const gss_OID)gss_mech_krb5,
- (const gss_OID)&req_oid,
+ (gss_OID)gss_mech_krb5,
+ (gss_OID)&req_oid,
&req_buffer);
return major_status;
krb5_error_code
krb5_gss_use_kdc_context(void)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_USE_KDC_CONTEXT_OID_LENGTH,
GSS_KRB5_USE_KDC_CONTEXT_OID };
OM_uint32 major_status;
req_buffer.value = NULL;
major_status = gssspi_mech_invoke(&minor_status,
- (const gss_OID)gss_mech_krb5,
- (const gss_OID)&req_oid,
+ (gss_OID)gss_mech_krb5,
+ (gss_OID)&req_oid,
&req_buffer);
if (major_status != GSS_S_COMPLETE) {
OM_uint32 KRB5_CALLCONV
gsskrb5_extract_authz_data_from_sec_context(
OM_uint32 *minor_status,
- const gss_ctx_id_t context_handle,
+ gss_ctx_id_t context_handle,
int ad_type,
gss_buffer_t ad_data)
{
major_status = gss_inquire_sec_context_by_oid(minor_status,
context_handle,
- (const gss_OID)&req_oid,
+ (gss_OID)&req_oid,
&data_set);
if (major_status != GSS_S_COMPLETE) {
return major_status;
gss_cred_id_t cred,
krb5_rcache rcache)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_SET_CRED_RCACHE_OID_LENGTH,
GSS_KRB5_SET_CRED_RCACHE_OID };
OM_uint32 major_status;
major_status = gssspi_set_cred_option(minor_status,
cred,
- (const gss_OID)&req_oid,
+ (gss_OID)&req_oid,
&req_buffer);
return major_status;
gss_ctx_id_t context_handle,
krb5_timestamp *authtime)
{
- static const gss_OID_desc const req_oid = {
+ static const gss_OID_desc req_oid = {
GSS_KRB5_EXTRACT_AUTHTIME_FROM_SEC_CONTEXT_OID_LENGTH,
GSS_KRB5_EXTRACT_AUTHTIME_FROM_SEC_CONTEXT_OID };
OM_uint32 major_status;
major_status = gss_inquire_sec_context_by_oid(minor_status,
context_handle,
- (const gss_OID)&req_oid,
+ (gss_OID)&req_oid,
&data_set);
if (major_status != GSS_S_COMPLETE)
return major_status;