-
-void dummy() {
- struct _auth_chunk ho_chal, ho_key;
-
- ho_chal = make_challenge(userid, password, oldnonce);
- if (ho_chal.err) {
- new_ao.err = ho_chal.err;
- return new_ao;
- }
- ho_key = (*fetch_key)(ho_chal.hash, sizeof(ho_chal.hash));
- memset(&ho_chal, 0, sizeof(ho_chal));
- if (ho_key.err) {
- new_ao.err = ho_key.err;
- return new_ao;
- }
- old_ao = parse_authobj(ho_key.hash, sizeof(ho_key.hash),
- authobj, authsize);
- memset(&ho_key, 0, sizeof(ho_key));
- if (old_ao.err) {
- new_ao.err = old_ao.err;
- if (old_ao.buffer) free(old_ao.buffer);
- return new_ao;
- }
-
- ho_chal = make_challenge(userid, password, newnonce);
- if (ho_chal.err) {
- new_ao.err = ho_chal.err;
- return new_ao;
- }
- ho_key = make_key(ho_chal.hash, sizeof(ho_chal.hash),
- old_ao.data, old_ao.datasize);
- memset(&ho_chal, 0, sizeof(ho_chal));
- if (ho_key.err) {
- new_ao.err = ho_key.err;
- return new_ao;
- }
- new_ao = make_authobj(ho_key.hash, sizeof(ho_key.hash),
- old_ao.data, old_ao.datasize,
- old_ao.payload, old_ao.paylsize);
- memset(&ho_key, 0, sizeof(ho_key));
-
-}