Lines Matching refs:tb
400 buffer * const tb = r->tmp_buf; /* password-string from auth-backend */ in mod_authn_file_plain_digest() local
402 ai->username, ai->ulen, tb, in mod_authn_file_plain_digest()
407 mod_authn_file_digest(ai, BUF_PTR_LEN(tb)); in mod_authn_file_plain_digest()
408 size_t tblen = (buffer_clen(tb) + 63) & ~63u; in mod_authn_file_plain_digest()
409 buffer_clear(tb); in mod_authn_file_plain_digest()
410 ck_memzero(tb->ptr, tblen < tb->size ? tblen : tb->size); in mod_authn_file_plain_digest()
417 buffer * const tb = r->tmp_buf; /* password-string from auth-backend */ in mod_authn_file_plain_basic() local
419 BUF_PTR_LEN(username), tb, in mod_authn_file_plain_basic()
422 rc = ck_memeq_const_time(BUF_PTR_LEN(tb), pw, strlen(pw)) ? 0 : -1; in mod_authn_file_plain_basic()
423 size_t tblen = (buffer_clen(tb) + 63) & ~63u; in mod_authn_file_plain_basic()
424 buffer_clear(tb); in mod_authn_file_plain_basic()
425 ck_memzero(tb->ptr, tblen < tb->size ? tblen : tb->size); in mod_authn_file_plain_basic()
697 buffer * const tb = r->tmp_buf; /* password-string from auth-backend */ in mod_authn_file_htpasswd_basic() local
699 BUF_PTR_LEN(username), tb, in mod_authn_file_htpasswd_basic()
703 uint32_t tblen = buffer_clen(tb); in mod_authn_file_htpasswd_basic()
705 if (tblen >= 5 && 0 == memcmp(tb->ptr, "{SHA}", 5)) { in mod_authn_file_htpasswd_basic()
711 tb->ptr+5, tblen-5, BASE64_STANDARD) in mod_authn_file_htpasswd_basic()
717 else if (tblen >= 6 && 0 == memcmp(tb->ptr, "$apr1$", 6)) { in mod_authn_file_htpasswd_basic()
719 rc = tblen == apr_md5_encode(pw, tb->ptr+6, sample, sizeof(sample)) in mod_authn_file_htpasswd_basic()
720 && ck_memeq_const_time_fixed_len(sample, tb->ptr, tblen); in mod_authn_file_htpasswd_basic()
728 rc = mod_authn_file_crypt_cmp(tb, pw); in mod_authn_file_htpasswd_basic()
732 buffer_clear(tb); in mod_authn_file_htpasswd_basic()
733 ck_memzero(tb->ptr, tblen < tb->size ? tblen : tb->size); in mod_authn_file_htpasswd_basic()