Lines Matching refs:ae
67 http_auth_cache_entry * const ae = in http_auth_cache_entry_init() local
70 ae->require = require; in http_auth_cache_entry_init()
71 ae->ctime = log_monotonic_secs; in http_auth_cache_entry_init()
72 ae->dalgo = dalgo; in http_auth_cache_entry_init()
73 ae->ulen = ulen; in http_auth_cache_entry_init()
74 ae->dlen = pwlen; in http_auth_cache_entry_init()
75 ae->klen = klen; in http_auth_cache_entry_init()
76 ae->username = (char *)(ae + 1); in http_auth_cache_entry_init()
77 ae->pwdigest = ae->username + ulen; in http_auth_cache_entry_init()
78 ae->k = (k == username) in http_auth_cache_entry_init()
79 ? ae->username in http_auth_cache_entry_init()
80 : memcpy(ae->pwdigest + pwlen, k, klen); in http_auth_cache_entry_init()
81 memcpy(ae->username, username, ulen); in http_auth_cache_entry_init()
82 memcpy(ae->pwdigest, pw, pwlen); in http_auth_cache_entry_init()
83 return ae; in http_auth_cache_entry_init()
89 http_auth_cache_entry * const ae = data; in http_auth_cache_entry_free() local
90 ck_memzero(ae->pwdigest, ae->dlen); in http_auth_cache_entry_free()
91 free(ae); in http_auth_cache_entry_free()
162 const http_auth_cache_entry * const ae = t->data; in mod_auth_tag_old_entries() local
163 if (cur_ts - ae->ctime > max_age) in mod_auth_tag_old_entries()
816 http_auth_cache_entry *ae = NULL; in mod_auth_check_basic() local
821 ae = http_auth_cache_query(sptree, ndx); in mod_auth_check_basic()
822 if (ae && ae->require == require in mod_auth_check_basic()
823 && ulen == ae->ulen && 0 == memcmp(user, ae->username, ulen)) in mod_auth_check_basic()
824 rc = ck_memeq_const_time(ae->pwdigest, ae->dlen, pw, pwlen) in mod_auth_check_basic()
828 ae = NULL; in mod_auth_check_basic()
831 if (NULL == ae) { in mod_auth_check_basic()
839 if (sptree && NULL == ae) { /*(cache (new) successful result)*/ in mod_auth_check_basic()
840 ae = http_auth_cache_entry_init(require, 0, user, ulen, user, ulen, in mod_auth_check_basic()
842 http_auth_cache_insert(sptree, ndx, ae, http_auth_cache_entry_free); in mod_auth_check_basic()
1127 http_auth_cache_entry *ae = NULL; in mod_auth_digest_get() local
1144 ae = http_auth_cache_query(sptree, ndx); in mod_auth_digest_get()
1145 if (ae && ae->require == require in mod_auth_digest_get()
1146 && ae->dalgo == ai->dalgo in mod_auth_digest_get()
1147 && ae->dlen == ai->dlen in mod_auth_digest_get()
1148 && ae->klen == ulen in mod_auth_digest_get()
1149 && 0 == memcmp(ae->k, user, ulen) in mod_auth_digest_get()
1150 && (ae->k == ae->username || ai->userhash)) { in mod_auth_digest_get()
1151 memcpy(ai->digest, ae->pwdigest, ai->dlen); in mod_auth_digest_get()
1152 if (ae->k != ae->username) { /*(userhash was key; copy username)*/ in mod_auth_digest_get()
1153 if (__builtin_expect( (ae->ulen <= sizeof(ai->userbuf)), 1)) { in mod_auth_digest_get()
1154 ai->ulen = ae->ulen; in mod_auth_digest_get()
1155 ai->username = memcpy(ai->userbuf, ae->username, ae->ulen); in mod_auth_digest_get()
1160 ae = NULL; in mod_auth_digest_get()
1163 if (NULL == ae) { in mod_auth_digest_get()
1183 if (sptree && NULL == ae) { /*(cache digest from backend)*/ in mod_auth_digest_get()
1184 ae = http_auth_cache_entry_init(require, ai->dalgo, user, ulen, in mod_auth_digest_get()
1187 http_auth_cache_insert(sptree, ndx, ae, http_auth_cache_entry_free); in mod_auth_digest_get()