/*
* Internal prototypes
*/
-#ifdef ASCEND_SECRET
static void make_secret(unsigned char *digest, u_int8_t *vector,
const char *secret, char *value);
-#endif
/*
* Reply to the request. Also attach
case PW_TYPE_ABINARY:
case PW_TYPE_STRING:
case PW_TYPE_OCTETS:
-#ifdef ASCEND_SECRET
/*
* Hmm... this is based on names
* right now. We really shouldn't do
memcpy(reply->strvalue, digest, AUTH_VECTOR_LEN );
reply->length = AUTH_VECTOR_LEN;
}
-#endif
len = reply->length;
/*
case PW_TYPE_OCTETS:
case PW_TYPE_ABINARY:
case PW_TYPE_STRING:
-#ifdef ASCEND_SECRET
/*
* Hmm... this is based on names
* right now. We really shouldn't do
pair->strvalue[AUTH_VECTOR_LEN] = '\0';
pair->length = strlen(pair->strvalue);
} else
-#endif
/* attrlen always < MAX_STRING_LEN */
memcpy(pair->strvalue, ptr, attrlen);
break;
*radius_packet_ptr = NULL;
}
-
-
-#ifdef ASCEND_SECRET
/*************************************************************************
*
* Function: make_secret
digest[i] ^= value[i];
}
}
-#endif /* ASCEND_SECRET */