projects
/
mech_eap.orig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util_saml: correctly account for gss lengths
[mech_eap.orig]
/
wrap.c
diff --git
a/wrap.c
b/wrap.c
index
122945e
..
a89bcb6
100644
(file)
--- a/
wrap.c
+++ b/
wrap.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.
*/
+/*
+ * Message protection services: wrap.
+ */
+
#include "gssapiP_eap.h"
OM_uint32
#include "gssapiP_eap.h"
OM_uint32
@@
-45,7
+49,7
@@
gss_wrap(OM_uint32 *minor,
if (ctx == GSS_C_NO_CONTEXT) {
*minor = EINVAL;
if (ctx == GSS_C_NO_CONTEXT) {
*minor = EINVAL;
- return GSS_S_NO_CONTEXT;
+ return GSS_S_
CALL_INACCESSIBLE_READ | GSS_S_
NO_CONTEXT;
}
*minor = 0;
}
*minor = 0;
@@
-53,8
+57,8
@@
gss_wrap(OM_uint32 *minor,
GSSEAP_MUTEX_LOCK(&ctx->mutex);
if (!CTX_IS_ESTABLISHED(ctx)) {
GSSEAP_MUTEX_LOCK(&ctx->mutex);
if (!CTX_IS_ESTABLISHED(ctx)) {
- *minor = GSSEAP_CONTEXT_INCOMPLETE;
major = GSS_S_NO_CONTEXT;
major = GSS_S_NO_CONTEXT;
+ *minor = GSSEAP_CONTEXT_INCOMPLETE;
goto cleanup;
}
goto cleanup;
}