Searched refs:dest_oid (Results 1 – 2 of 2) sorted by relevance
40 gss_OID *dest_oid in gss_duplicate_oid() argument46 *dest_oid = GSS_C_NO_OID; in gss_duplicate_oid()50 *dest_oid = malloc(sizeof(**dest_oid)); in gss_duplicate_oid()51 if (*dest_oid == GSS_C_NO_OID) { in gss_duplicate_oid()56 (*dest_oid)->elements = malloc(src_oid->length); in gss_duplicate_oid()57 if ((*dest_oid)->elements == NULL) { in gss_duplicate_oid()58 free(*dest_oid); in gss_duplicate_oid()59 *dest_oid = GSS_C_NO_OID; in gss_duplicate_oid()63 memcpy((*dest_oid)->elements, src_oid->elements, src_oid->length); in gss_duplicate_oid()64 (*dest_oid)->length = src_oid->length; in gss_duplicate_oid()
38 gss_OID dest_oid; in gss_duplicate_oid() local46 dest_oid = malloc(sizeof(gss_OID_desc)); in gss_duplicate_oid()47 if (!dest_oid) { in gss_duplicate_oid()52 dest_oid->elements = malloc(src_oid->length); in gss_duplicate_oid()53 if (!dest_oid->elements) { in gss_duplicate_oid()54 free(dest_oid); in gss_duplicate_oid()59 memcpy(dest_oid->elements, src_oid->elements, src_oid->length); in gss_duplicate_oid()60 dest_oid->length = src_oid->length; in gss_duplicate_oid()62 *dest_oid_p = dest_oid; in gss_duplicate_oid()