28 RCSID(
"$Id: 5fa84a77c3d7476e781f58f26ec3a5a0d56e42e2 $")
33 #include <freeradius-devel/radiusd.h>
34 #include <freeradius-devel/rad_assert.h>
39 #include <openssl/des.h>
40 #include <openssl/md4.h>
41 #include <openssl/md5.h>
42 #include <openssl/sha.h>
47 #define SIZEOF_PWATTR (4 * 2)
63 (void) memset(pwattr, 0,
sizeof(pwattr));
132 DEBUG(
"rlm_otp: %s: password attributes %s, %s",
133 __func__, pwattr[i]->
name, pwattr[i + 1]->
name);
139 DEBUG(
"rlm_otp: %s: no password attributes present", __func__);
VALUE_PAIR * vps
Result of decoding the packet into VALUE_PAIRs.
fr_dict_attr_t const * pwattr[SIZEOF_PWATTR]
unsigned int attr
Attribute number.
otp_pwe_t otp_pwe_present(REQUEST const *request)
unsigned int vendor
Vendor that defines this attribute.
RADIUS_PACKET * packet
Incoming request.
VALUE_PAIR * fr_pair_find_by_num(VALUE_PAIR *head, unsigned int vendor, unsigned int attr, int8_t tag)
Find the pair with the matching attribute.
#define USES_APPLE_DEPRECATED_API
fr_dict_attr_t const * fr_dict_attr_by_name(fr_dict_t *dict, char const *attr)
Locate a fr_dict_attr_t by its name.