projects
/
mech_eap.orig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comment out dumping code
[mech_eap.orig]
/
set_sec_context_option.c
diff --git
a/set_sec_context_option.c
b/set_sec_context_option.c
index
b4872ca
..
1f373c2
100644
(file)
--- a/
set_sec_context_option.c
+++ b/
set_sec_context_option.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
0
, JANET(UK)
+ * Copyright (c) 201
1
, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-30,6
+30,10
@@
* SUCH DAMAGE.
*/
* SUCH DAMAGE.
*/
+/*
+ * Set an extended property on a context handle.
+ */
+
#include "gssapiP_eap.h"
static struct {
#include "gssapiP_eap.h"
static struct {
@@
-45,10
+49,13
@@
gss_set_sec_context_option(OM_uint32 *minor,
const gss_OID desired_object,
const gss_buffer_t value)
{
const gss_OID desired_object,
const gss_buffer_t value)
{
- OM_uint32 major
= GSS_S_UNAVAILABLE
;
+ OM_uint32 major;
gss_ctx_id_t ctx = *pCtx;
int i;
gss_ctx_id_t ctx = *pCtx;
int i;
+ major = GSS_S_UNAVAILABLE;
+ *minor = GSSEAP_BAD_CONTEXT_OPTION;
+
if (ctx != GSS_C_NO_CONTEXT)
GSSEAP_MUTEX_LOCK(&ctx->mutex);
if (ctx != GSS_C_NO_CONTEXT)
GSSEAP_MUTEX_LOCK(&ctx->mutex);