Lines Matching defs:tempprinc
63 register krb5_principal tempprinc;
66 tempprinc = (krb5_principal)krb5_db_alloc(context, NULL, sizeof(krb5_principal_data));
68 if (tempprinc == 0)
71 memcpy(tempprinc, inprinc, sizeof(krb5_principal_data));
74 tempprinc->data = krb5_db_alloc(context, NULL, nelems * sizeof(krb5_data));
76 if (tempprinc->data == 0) {
77 krb5_db_free(context, (char *)tempprinc);
83 krb5_princ_component(context, tempprinc, i)->length = len;
84 if (((krb5_princ_component(context, tempprinc, i)->data =
87 krb5_db_free(context, krb5_princ_component(context, tempprinc, i)->data);
88 krb5_db_free (context, tempprinc->data);
89 krb5_db_free (context, tempprinc);
93 memcpy(krb5_princ_component(context, tempprinc, i)->data,
97 tempprinc->realm.data =
98 krb5_db_alloc(context, NULL, tempprinc->realm.length = inprinc->realm.length);
99 if (!tempprinc->realm.data && tempprinc->realm.length) {
101 krb5_db_free(context, krb5_princ_component(context, tempprinc, i)->data);
102 krb5_db_free(context, tempprinc->data);
103 krb5_db_free(context, tempprinc);
106 if (tempprinc->realm.length)
107 memcpy(tempprinc->realm.data, inprinc->realm.data,
110 *outprinc = tempprinc;