/*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*/
/*
- * $Id: util_ordering.c 23457 2009-12-08 00:04:48Z tlyu $
- */
-
-/*
- * functions to check sequence numbers for replay and sequencing
+ * Functions to check sequence numbers for replay and sequencing
*/
#include "gssapiP_eap.h"
int i;
uint64_t expected;
+ *minor = 0;
+
q = (queue *) (*vqueue);
if (!q->do_replay && !q->do_sequence)
*vqueue = NULL;
+ *minor = 0;
return GSS_S_COMPLETE;
}
* These support functions are for the serialization routines
*/
size_t
-sequenceSize(void *vqueue)
+sequenceSize(void *vqueue GSSEAP_UNUSED)
{
return sizeof(queue);
}
size_t *lenremain)
{
if (*lenremain < sizeof(queue)) {
- *minor = ERANGE;
+ *minor = GSSEAP_WRONG_SIZE;
return GSS_S_FAILURE;
}
memcpy(*buf, vqueue, sizeof(queue));
void *q;
if (*lenremain < sizeof(queue)) {
- *minor = ERANGE;
+ *minor = GSSEAP_TOK_TRUNC;
return GSS_S_DEFECTIVE_TOKEN;
}