Lines Matching refs:ret

140     krb5_error_code ret;  in find_db()  local
145 ret = hdb_get_dbinfo(context, &head); in find_db()
146 if (ret) in find_db()
147 return ret; in find_db()
181 krb5_error_code ret; in hdb_get_entry() local
192 ret = find_db(context, &fdbname, &fmkey, principal); in hdb_get_entry()
193 if (ret) in hdb_get_entry()
194 return ret; in hdb_get_entry()
199 ret = hdb_create (context, &db, dbname); in hdb_get_entry()
200 if (ret) in hdb_get_entry()
202 ret = hdb_set_master_keyfile (context, db, mkey); in hdb_get_entry()
203 if (ret) { in hdb_get_entry()
208 ret = (*db->hdb_open)(context, db, O_RDONLY, 0); in hdb_get_entry()
209 if (ret) { in hdb_get_entry()
214 ret = (*db->hdb_fetch_kvno)(context, db, principal, in hdb_get_entry()
219 if(ret == HDB_ERR_NOENTRY) { in hdb_get_entry()
220 ret = KRB5_KT_NOTFOUND; in hdb_get_entry()
222 }else if(ret) in hdb_get_entry()
227 ret = KRB5_KT_NOTFOUND; in hdb_get_entry()
233 ret = KRB5_KT_NOTFOUND; in hdb_get_entry()
241 ret = 0; in hdb_get_entry()
252 return ret; in hdb_get_entry()
265 krb5_error_code ret; in hdb_start_seq_get() local
277 ret = KRB5_KT_NOTFOUND; in hdb_start_seq_get()
278 return ret; in hdb_start_seq_get()
281 ret = hdb_create (context, &db, dbname); in hdb_start_seq_get()
282 if (ret) in hdb_start_seq_get()
283 return ret; in hdb_start_seq_get()
284 ret = hdb_set_master_keyfile (context, db, mkey); in hdb_start_seq_get()
285 if (ret) { in hdb_start_seq_get()
287 return ret; in hdb_start_seq_get()
290 ret = (*db->hdb_open)(context, db, O_RDONLY, 0); in hdb_start_seq_get()
291 if (ret) { in hdb_start_seq_get()
293 return ret; in hdb_start_seq_get()
310 return ret; in hdb_start_seq_get()
320 krb5_error_code ret; in hdb_next_entry() local
326 ret = (c->db->hdb_firstkey)(context, c->db, in hdb_next_entry()
330 if (ret == HDB_ERR_NOENTRY) in hdb_next_entry()
332 else if (ret) in hdb_next_entry()
333 return ret; in hdb_next_entry()
342 ret = (c->db->hdb_nextkey)(context, c->db, in hdb_next_entry()
346 if (ret == HDB_ERR_NOENTRY) in hdb_next_entry()
348 else if (ret) in hdb_next_entry()
349 return ret; in hdb_next_entry()
363 ret = krb5_copy_principal(context, in hdb_next_entry()
366 if (ret) in hdb_next_entry()
367 return ret; in hdb_next_entry()
370 ret = krb5_copy_keyblock_contents(context, in hdb_next_entry()
373 if (ret) { in hdb_next_entry()
376 return ret; in hdb_next_entry()