/*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
if (ctx == GSS_C_NO_CONTEXT) {
*minor = EINVAL;
- return GSS_S_NO_CONTEXT;
+ return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_NO_CONTEXT;
}
GSSEAP_MUTEX_LOCK(&ctx->mutex);
}
if (mech_type != NULL) {
- if (!gssEapInternalizeOid(ctx->mechanismUsed, mech_type)) {
- major = duplicateOid(minor, ctx->mechanismUsed, mech_type);
- if (GSS_ERROR(major))
- goto cleanup;
- }
+ major = gssEapCanonicalizeOid(minor, ctx->mechanismUsed, 0, mech_type);
+ if (GSS_ERROR(major))
+ goto cleanup;
}
if (ctx_flags != NULL) {