Home | History | Annotate | Download | only in overlays

Lines Matching refs:otp

1 /*	$NetBSD: otp.c,v 1.3 2025/09/05 21:16:32 christos Exp $	*/
3 /* otp.c - OATH 2-factor authentication module */
213 "DESC 'OATH-LDAP: Length of OTP (number of digits)' "
237 "DESC 'OATH-LDAP: HMAC algorithm used for generating OTP values' "
577 int i, offset, res, otp;
604 otp = res % DIGITS_POWER[digits];
605 out->bv_len = snprintf( out->bv_val, out->bv_len, "%0*d", digits, otp );
675 /* We are provided "password" + "OTP", split accordingly */
691 /* OTP check passed, trim the password */
779 /* We are provided "password" + "OTP", split accordingly */
799 /* OTP check passed, trim the password */
950 static slap_overinst otp;
959 otp.on_bi.bi_type = "otp";
960 otp.on_bi.bi_op_bind = otp_op_bind;
963 argv[0] = "otp";
995 return overlay_register( &otp );