Lines Matching defs:rec
127 osa_princ_ent_t rec;
143 if((rec = (osa_princ_ent_t) malloc(sizeof(osa_princ_ent_rec))) == NULL)
145 memset(rec, 0, sizeof(osa_princ_ent_rec));
155 if((rec->policy = (char *) malloc(strlen(cp)+1)) == NULL) {
159 strcpy(rec->policy, cp);
160 } else rec->policy = NULL;
167 rec->aux_attributes = strtol(cp, (char **)NULL, 16);
173 rec->old_key_len = atoi(cp);
179 rec->old_key_next = atoi(cp);
185 rec->admin_history_kvno = atoi(cp);
186 if (! rec->old_key_len) {
187 rec->old_keys = NULL;
189 if(!(rec->old_keys = (osa_pw_hist_ent *)
190 malloc(sizeof(osa_pw_hist_ent) * rec->old_key_len))) {
194 memset(rec->old_keys,0,
195 sizeof(osa_pw_hist_ent) * rec->old_key_len);
196 for(x = 0; x < rec->old_key_len; x++)
197 parse_pw_hist_ent(current, &rec->old_keys[x]);
201 if (! xdr_osa_princ_ent_rec(&xdrs, rec)) {
231 osa_free_princ_ent(rec);